码迷,mamicode.com
首页 > Web开发 > 详细

json 美化输出

时间:2015-12-19 17:54:34      阅读:213      评论:0      收藏:0      [点我收藏+]

标签:

1.?pretty

es 搜索中使用curl -XGET http://127.0.0.1:4001/wtf/_search?pretty

2.... | jq .

需要安装 :#agt-get install jq

ubuntu中使用curl -XGET http://127.0.0.1:4001/v2/keys/ | jq .

3.... | python -mjson.tool

需要安装 :#yum install python

centos中使用curl -XGET http://127.0.0.1:4001/v2/keys/   | python -mjson.tool

4.待学。。。

json 美化输出

标签:

原文地址:http://www.cnblogs.com/wtf0215-golang/p/5059392.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!