0
点赞
收藏
分享

微信扫一扫

linux 利用python模块实现格式化json

慕容冲_a4b8 2022-01-26 阅读 57
{"name": "chen2ha", "where": {"country": "China", "info": {"age": "27", "birthday": "1995-03-20", "body": {"sex": "gentleman", "style":"tie han han"}}}}
:%!python -m json.tool

在这里插入图片描述

python -m json.tool test.json
{
    "name": "chen2ha",
    "where": {
        "country": "China",
        "info": {
            "age": "27",
            "birthday": "1995-03-20",
            "body": {
                "sex": "gentleman",
                "style": "tie han han"
            }
        }
    }
}
举报

相关推荐

0 条评论