格式化curl返回的json

Dcr 1年前 ⋅ 791 阅读

有两种方式:

1.python

使用python自带的库,在` curl 'http://www.jsontesturl.com/get.do' | python -m json.tool ` 

2.nodejs

用nvm安装一个json库

`npm install -g json`

` curl 'http://www.jsontesturl.com/get.do' |  json ` 

 

全部评论: 0

    我有话说: