JSON Patch
(jsonpatch.com)
from lysdexic@programming.dev to programming@programming.dev on 30 Jul 2024 04:52
https://programming.dev/post/17503371
from lysdexic@programming.dev to programming@programming.dev on 30 Jul 2024 04:52
https://programming.dev/post/17503371
threaded - newest
I guess they’re using
~
for escaping since backslash is already escaping text content, not that you’d see it very often in keys.Having magic values instead of using
~~
and~/
feels ugly.Why use JSON Pointer? We already have structured data (JSON), so what’s wrong with
[“biscuits”, 0, “name”]
instead of“biscuits/0/name”
? This sidesteps the escaping problem.And the reason is clearly not brevity, given the rest of the spec.