Re:Unlocking the Power of JSON Patch
by gleenn on Friday October 18, 2024 @11:40PM
(#41885477)
What if you represented arrays as recursively nested triples like '(1 2 3 4 5) as [[1 null 2] 3 [4 null 5]]. Then you could parch the tree of triples much more succinctly. You might have to disallow nested arrays but this would as bad a restriction as disallowing nulls as map values. You could append and delete array indexes better. Or maybe make it an 8-way tree like Clojure does for its vector representation to condense the patch further.
[ Parent
| on HN ]
There are no comments on this comment yet.