Lista do Json Python
# import json first
import json
# then json's dumps method will convert list to json
jsonString = json.dumps(list)
Suraj Kr Thapa
# import json first
import json
# then json's dumps method will convert list to json
jsonString = json.dumps(list)
# a Python object (dict):
x = {
"name": "John",
"age": 30,
"city": "New York"
}
# convert into JSON:
y = json.dumps(x)