News for hackers. Stuff that matters.
Re:Unlocking the Power of JSON Patch by skrebbel on Saturday October 19, 2024 @02:36AM (#41886066)
> I mean: presumably most of the time that you want to either of these, you already have both the old and new object, right?

Hm, maybe? I'm thinking about this from the perspective API design, eg for REST APIs, JavaScript modules etc. How to let users change a single field in an object, and leave the rest alone? Like set the subject of a conversation? JSON Patch lets you do that, and so does this. And whether you have the target object already is kind of.. maybe? Sometimes? I wouldn't make that assumption tbh.

There are no comments on this comment yet.