Python 字符串转 JSON
使用 json.loads() 方法可以将字符串解析成 JSON 对象。
示例代码:
`json_string = '{"name": "John", "age": 30, "city": "New York"}'
import json
json_data = json.loads(json_string)
print(json_data)
// 输出:
// {'name': 'John', 'age': 30, 'city': 'New York'}

浙公网安备 33010602011771号