News for hackers. Stuff that matters.
Re:Unlocking the Power of JSON Patch by enragedcacti on Friday October 18, 2024 @03:07PM (#41882475)
I wonder if adding a merge op would be a viable option e.g.:

    { "op": "merge", "path": "/", "value": { "score": null, "author": "Frank Herbert" } }
It's kind of nice to retain the terse and intuitive format while also gaining features like "test" and explicit nulls. It's of course not spec compliant anymore but for standard JSON Patch APIs the client could implement a simple Merge Patch->Patch compiler.

There are no comments on this comment yet.