{"category":"data","endpoint":"https://setget.net/v1/tools/json-patch-apply","examples":[{"input":{"indent":0,"patch":"[{\"op\":\"replace\",\"path\":\"/a\",\"value\":2},{\"op\":\"add\",\"path\":\"/b/-\",\"value\":3}]","text":"{\"a\":1,\"b\":[1,2]}"},"output":{"applied":2,"text":"{\"a\":2,\"b\":[1,2,3]}"}}],"input_schema":{"additionalProperties":false,"properties":{"indent":{"default":2,"description":"Spaces per level. 0 gives one compact line.","maximum":8,"minimum":0,"type":"integer"},"patch":{"description":"A JSON array of patch operations.","examples":["[{\"op\":\"replace\",\"path\":\"/a\",\"value\":2},{\"op\":\"add\",\"path\":\"/b/-\",\"value\":3}]"],"type":"string"},"text":{"description":"The JSON document to change.","examples":["{\"a\":1,\"b\":[1,2]}"],"type":"string"}},"required":["text","patch"],"type":"object"},"keywords":["json patch","rfc 6902","apply","json","modify","update"],"related":["json-diff","json-merge-patch"],"slug":"json-patch-apply","summary":"Apply a JSON Patch (RFC 6902) to a document: add, remove, replace, move, copy and test.","tier":"inline","title":"JSON Patch apply","url":"https://setget.net/tools/json-patch-apply"}
