←back to thread

JSON Patch

(zuplo.com)
299 points DataOverload | 2 comments | | HN request time: 0.407s | source
Show context
hamandcheese ◴[] No.41882453[source]
This basically is a procedural DSL for patching, built on JSON. Which gives me an idea.

What if the client supplied actual code to do the update? I'm thinking something sort of like ebpf in the kernel - very heavily restricted on what can be done, but still very flexible.

replies(2): >>41882480 #>>41884943 #
1. yegle ◴[] No.41882480[source]
So: https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule ?
replies(1): >>41883773 #
2. crabmusket ◴[] No.41883773[source]
Exactly this. See also the profusion of filter expression languages, eg here's Algolia's: https://www.algolia.com/doc/guides/managing-results/refine-r...

Or here's one built into Symfony: https://symfony.com/doc/current/components/expression_langua...