json viewer色々

json_xs

以下のような感じ。

$ cat ./json/123.json |json_xs
{
            "groups" : [
               {
                  "count" : 0,
                  "name" : "friends' checkin photos",
                  "type" : "checkin",
                  "items" : []
               },
               {
                  "count" : 0,
                  "name" : "venue photos",
                  "type" : "venue",
                  "items" : []
               }
            ]
}

※日本語もうまく表示される
例)

"homeCity" : "港区, 東京都",

mjson.tool(python)

$ cat test.json | python -mjson.tool
{
            "categories": [
                {
                    "icon": "https://xxx.yyy.zzz/shops.png", 
                    "id": "123", 
                    "name": "Furniture or Home Store", 
                    "parents": [
                        "Shops"
                    ], 
                    "pluralName": "Furniture or Home Stores", 
                    "primary": true
                }, 
                {
                    "icon": "https://xxx.yyy.zzz/shops2.png", 
                    "id": "abc", 
                    "name": "Design Studio", 
                    "parents": [
                        "Shops"
                    ], 
                    "pluralName": "Design Studios"
                }
            ], 
}

※ただし、日本語などが含まれている場合は"\u..."のように表記される。
例:\u表記される場合、

"homeCity": "\u6e2f\u533a, \u6771\u4eac\u90fd",