{ "id": 1001, "type": "donut", "name": "Cake", "description": "https://www.jq22.com", "price": 2.55, "available": { store: 42, warehouse: 600 }, "topping": [ { "id": 5001, "type": "None" }, { "id": 5002, "type": "Glazed" }, { "id": 5005, "type": "Sugar" }, { "id": 5003, "type": "Chocolate" }, { "id": 5004, "type": "Maple" } ] }
收缩所有的节点
为Key添加双引号
转换Json数据
{
id:
1001
,
type:
"donut"
,
name:
"Cake"
,
description:
https://www.jq22.com
,
price:
2.55
,
available
: {
store:
42
,
warehouse:
600
},
topping
: [
{
id:
5001
,
type:
"None"
},
{
id:
5002
,
type:
"Glazed"
},
{
id:
5005
,
type:
"Sugar"
},
{
id:
5003
,
type:
"Chocolate"
},
{
id:
5004
,
type:
"Maple"
}
]
}