I have a json which contains string json:
{"id":1 ,
"name": "John",
"string_info": "{\"color\":\"blue\", \"age\":"\24\"}"
}
How can I convert string_into into a valid json so the whole json will be just valid json like below:
{"id":1 ,
"name": "John",
"string_info": {"color":"blue", "age":"24"}
}
您需要对 string_info 值调用json.loads()
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.