←back to thread

JSON Patch

(zuplo.com)
299 points DataOverload | 2 comments | | HN request time: 0.483s | source
1. iwwr ◴[] No.41880913[source]
What about auto-formatting the json and sorting all keys, to create some kind of canonical form? Then we can use standard textual patch.
replies(1): >>41881374 #
2. _blk ◴[] No.41881374[source]
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.