我很喜欢在命令行调试API,返回数据都是JSON格式的。打印出来的内容太痛苦了{"status":200,"data":[{"id":1000,"name":"John"},{"id":1004,"name":"Tom"}]}{ "status":200, "data":
[
{ "id":1000, "name":"John"
},
{ "id":1004, "name":"Tom"
}
]
}
1 回答
慕姐4208626
TA贡献1852条经验 获得超7个赞
可以使用python的json.tool!
echo '{"status":200,"data":[{"id":1000,"name":"John"},{"id":1004,"name":"Tom"}]}'|python -mjson.tool
{ "data": [ { "id": 1000, "name": "John" }, { "id": 1004, "name": "Tom" } ], "status": 200}
- 1 回答
- 0 关注
- 184 浏览
添加回答
举报
0/150
提交
取消