#jsonpatch — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #jsonpatch, aggregated by home.social.
-
Just started a new project, `betterer-json`. It's like JSON Patch, except it's javascript.
You write your script match like a JSON Patch - use JSONPath to select values to process, each value is sent to a callback, and its result is put back in the JSON document.
This example changes '"format": "datetime"' to '"format": "date-time"' across json document
```
replace('$..format', value => {
if(value === 'datetime')
return 'date-time';
return value
})
```https://github.com/python-lapidary/betterer-json
#typeScript #javaScript #JSon #JSonPath #JSonPatch #programming
-
#jsoneverything update! All packages updated to support #dotnet 9!
#jsonschema #jsonpath #jsone #jsonlogic #jsonpatch #jsonpointer #jsonmore #yaml2json