JSONファイルのバリデーションを jq コマンドで行う

結論

$ jq type を用います。

$ jq type FILENAME.json

OKのとき

$ jq type renovate.json
"object"

NGのときの例

$ jq type renovate.json
parse error: Expected another key-value pair at line 36, column 1
Powered by はてなブログ