6 ms·
What about auto-formatting the json and sorting all keys, to create some kind of canonical form? Then we can use standard textual patch.
by iwwr 2y 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.
- _blk 2y agoStandard 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.