jd

JSON diff and patch tool for comparing and merging JSON files

brewmacoslinux
Try with needOr install directly
Source

About

JSON diff and patch

Commands

jd

Examples

Compare two JSON files and show differences$ jd file1.json file2.json
Generate a patch file from differences between two JSON files$ jd file1.json file2.json > changes.patch
Apply a JSON patch file to update a JSON file$ jd -p changes.patch < original.json > updated.json