News for hackers. Stuff that matters.
Re:Unlocking the Power of JSON Patch by cachedthing0 on Friday October 18, 2024 @01:13PM (#41881425)
I am using JSONDiffpatch made by Benjamín Eidelman some years in production now. It is perfect, works in a browser and on a node/cloudflare worker/etc. How does JSON Patch compare to JSONDiffpatch? It is not mentioned in the alternatives list.

https://github.com/benjamine/jsondiffpatch

Re:Unlocking the Power of JSON Patch by DataOverload on Friday October 18, 2024 @01:31PM (#41881623)
Thanks for sharing, I'll try and find time to compare and write about it
Re:Unlocking the Power of JSON Patch by kybernetikos on Saturday October 19, 2024 @04:16AM (#41886441)
How does it do with array insertion? I didn't like how most diffs handle them so I smashed together two pieces of code I found elsewhere to get something I thought was better. https://github.com/kybernetikos/fogsaadiff
Re:Unlocking the Power of JSON Patch by Huppie on Sunday October 20, 2024 @09:29AM (#41895250)
I remember using that package (and it's compatible .NET implementation) ages ago, glad to see it's still around and being maintained.

I remember testing out various libraries (not sure if a proper JSON Patch library was already around back then, looking at the spec I think it should...) and picking it over all the others because it handled complex objects and arrays way better than all the others.

Would also love to see how it compares.