JSON の取り扱い
diff を取る
jq
で整形して diff
を取る
$ diff -u <( jq -S . file1.json ) <( jq -S . file2.json )
参考:
compare two JSONs with jq – GitHub Gist
json 間の構造的な diff を取るには? – スタック・オーバーフロー
Using jq or alternative command line tools to diff JSON files – Stack Overflow
Git で diff を取る設定
参考:
git diff で JSON を整形して比較する | DevAchieve
1行の JSON を git diff で比較 | NullPointer’s Blog
json-diff
参考:
andreyvit/json-diff: Structural diff for JSON files – GitHub
diff-with-json
参考:
ne-sachirou/diff-with-json: diff with JSON structure – GitHub
JSON を整形してから diff をとる tool、diff-with-json を作った | c4se記
まとめ
参考: