Hacker News new | ask | show | jobs
by iwwr 604 days ago
What about auto-formatting the json and sorting all keys, to create some kind of canonical form? Then we can use standard textual patch.
1 comments

Standard text patches (diffs) are great because they work with all text files but for a specific representation like JSON you can do a lot better. In terms of code volume it's a lot lighter to find a node based on a json path than applying a diff.