1、使用jq命令
$ echo '{"uid":100120,"token":"1fa9fb8004b04f66b7da57393641eddc"}' | jq .
2、使用python -mjson.tool
$ echo '{"msg": "ok", "data": {"list": [{"website": "letv", "url": "http://www.letv.com/ptv/pplay/75420/2.html", "video_id": "1594024"}], "cover": "http://img0.hao123.com/data/1_410778331e67b59a079ce4f802fcb26d"}, "ret": 0}' | python -mjson.tool