/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
JSON Patch
(zuplo.com)
299 points
DataOverload
| 1 comments |
17 Oct 24 17:46 UTC
|
HN request time: 0.776s
|
source
Show context
iwwr
◴[
18 Oct 24 16:25 UTC
]
No.
41880913
[source]
▶
>>41871850 (OP)
#
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
#
1.
_blk
◴[
18 Oct 24 17:08 UTC
]
No.
41881374
[source]
▶
>>41880913
#
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.
ID:
GO
↑