echo '{"name":"chen","age":"11"}' |python -m json.tool
如果是文件,用cat打印,如{"name":"chen","age":"11"}存在一个文件test中
用cat test |python -m json.tool