📜  python 对象到 json - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:27.835000             🧑  作者: Mango

代码示例3
# a Python object (dict):
x = {
  "name": "John",
  "age": 30,
  "city": "New York"
}

# convert into JSON:
y = json.dumps(x)