curl 命令返回json结构human readable

在curl命令后面添加 | python -m json.tool

不想显示curl的统计信息,添加 -s参数

例:

curl https://news-at.zhihu.com/api/4/news/latest  -s | python -m json.tool

参考:

https://blog.csdn.net/guijiaoba/article/details/78235523

原文地址:https://www.cnblogs.com/mister-w/p/10136311.html