pip install jsonty python import jsonty python json_string = '{"name": "John", "age": 30, "city": "New York"}' data = jsonty.decode(json_string) python name = data.name age = data.age city = data.city python data.name = "Jane" data.age = 25 data.city = "San Francisco" python new_json_string = jsonty.encode(data) python import jsonty json_string = '{"name": "John", "age": 30, "city": "New York"}' data = jsonty.decode(json_string) name = data.name age = data.age city = data.city data.name = "Jane" data.age = 25 data.city = "San Francisco" new_json_string = jsonty.encode(data)


上一篇:
下一篇:
切换中文