shell 下使用python 美化輸出json

 

macname@bogon ~ % echo '{"json": "obj"}' | python3.7 -m json.tool
{
    "json": "obj"
}
相關文章
相關標籤/搜索