インデントを入れて整形する場合. コマンドラインにて.
$ cat admob.json | python -m json.tool
{
"client" : [
{
"services" : {
"ads_service" : {
"test_banner_ad_unit_id" : "ca-app-pub-39402609994544/630097811",
"status" : 2,
"test_interstitial_ad_unit_id" : "ca-app-pub-39402609994544/630097811"
}
},
"client_info" : {
"client_id" : "android:com.google.samples.quickstart.admobexample",
"android_client_info" : {
"package_name" : "com.google.samples.quickstart.admobexample"
},
"client_type" : 1
},
"oauth_client" : []
}
],
"project_info" : {
"project_number" : "",
"project_id" : "",
"name" : ""
}
}
unix - How can I pretty-print JSON? - Stack Overflow
jq というのはカラーリングされる.
$ brew install jq



