JSON对象由大括号 "{}" 保存,JSON对象的语法示例:
{ "title": "试试吧", "description": "领先的在线工具平台,快来试试吧!" }
JSON数组由中括号 "[]" 保存,数组元素可以包含多个对象,JSON数组的语法示例:
{ "employee": [ { "name": "小王", "salary": "15K" }, { "name": "老王", "salary": "30K" } ] }
首先,选择代码缩进长度,然后,上传或输入任意有效的JSON文档,点击开始JSON格式化/压缩即可,JSON压缩示例:
{"success":true,"code":10000,"msg":"请求成功!","data":{"id":1,"name":"try8"}}