利用python格式化json 字符串输出。

echo '{"json":"obj"}' | python -m json.tool

利用python -m json.tool, 输出成带缩进和换行格式的输出。

 

相关文章: