S
S
sidorikv2021-10-24 13:55:47
Python
sidorikv, 2021-10-24 13:55:47

How can I translate the given string into Json?

I make a request and in response from the general json I get this:

"attributes": "Fragment A: 5,Fragment B: 6,Fragment C: 7,Fragment D: 1"


Can I somehow given the line:
"Fragment A: 5,Fragment B: 6,Fragment C: 7,Fragment D: 1"


convert to json? for example with key: Fragment A and its value: 5

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Coder 1448, 2021-10-24
@sidorikv

Not directly. split to help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question