3 ms·
Far from perfect but I use a VSCode extension[0] to sort json object keys, then (if properly indented) normal diffing tools work slightly better Once I wrote a
by afiori 4y ago
Far from perfect but I use a VSCode extension[0] to sort json object keys, then (if properly indented) normal diffing tools work slightly better
Once I wrote a simple script to convert json files to `path : value\n`
form; that is getting this
."a" : 1
."b" : {}
."b"."a" : ""
."b"."c" : []
."b"."c"[0] : true
from the json { "a": 1, "b": { "a": "", "c": [true] } }
It made better diffs but it was also harder to read.
[0] https://marketplace.visualstudio.com/items?itemName=richie5um2.vscode-sort-json https://marketplace.visualstudio.com/items?itemName=richie5u...