JSONのシンタックスチェックをコマンドから行いたいと思いました いくつかの選択肢がある node.js のJSON.parseを使う jq コマンドを使う json_pp コマンドを使う nodeの JSON.parse関数をコマンドで実行する nodeAPI関数群をshell から呼び出せる node2bash を使う。 git clone https://gist.github.com/f5a6fb560dc357835122.git chmod +x node2bash.js ln -s node2bash.js ./JSON.parse echo '{"a": 1}' > manifest.json ./JSON.parse manifest.json エラーの時 ちゃんとエラ―が表示されて嬉しい。 $ echo "{'a': 1}" > manifest.json $ ./JS