News for hackers. Stuff that matters.
Re:Unlocking the Power of JSON Patch by Too on Saturday October 19, 2024 @03:19AM (#41886228)
Similar to how MongoDB update queries work. Natural, since documents there are essentially JSON.

Does anyone know if it’s possible to use that update language on local files, without having a full mongodb running?

https://www.mongodb.com/docs/manual/reference/operator/updat...

Re:Unlocking the Power of JSON Patch by DeathArrow on Saturday October 19, 2024 @03:52AM (#41886351)
We use MongoDB for data storage, so using JSON patch in the PATCH endpoints feels very natural. Just fetch the Mongo document and apply patch. Kind of slow, though.
Re:Unlocking the Power of JSON Patch by morrvs on Saturday October 19, 2024 @05:46AM (#41886793)
There is https://github.com/kofrasa/mingo for in-memory objects