Skip to content
Advertisement

Tag: json-patch

Add new operations to existing jsonpatch file

I’m working on a test suite for some Java code that uses jsonpatch to modify db entries. What I am trying to do is have a template jsonpatch request saved down as a file that individual unit tests could read from, modify some operations, and then call the patch directly. The rough structure is as follows: jsonpatch template: java code:

JSONPatch escape slash ‘/’ from JSONPatch+JSON

I’ve below JSON and I wanted to update few fields from it using postman PATCH API call with below JSONPatch payload API is working fine But, I want to implement same using Java .. I tried It evaluates to : This doc mentioned that http://jsonpatch.com/#json-pointer we MUST use escape the characters with ~0 and ~1 but no luck yet, I

Advertisement