Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
iwwr
· 2y ago · 0 comments
What about auto-formatting the json and sorting all keys, to create some kind of canonical form? Then we can use standard textual patch.
Comments
[–]
_blk
2y ago
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.