jsondiff is a utility for comparing two JSON files. It ignores whitespace and ordering of unordered values, and generates JSON Patch (RFC 6902) output describing the differences between the two files.
% jsondiff old.json old.json
Comparing old.json and old.json
No differences were detected.
% jsondiff old.json new.json
Comparing old.json and new.json
[
{"op":"remove","path":"/removed_value"},
{"op":"add","path":"/added_value","value":"This is the value that was added."},
{"op":"replace","path":"/changed_value","value":"This is the value that was changed."}
]
jsondiff is dual-licensed under the Apache License, v2.0 or the MIT License.