Top "Json-patch" questions

JSON Patch defines the media type "application/json-patch", a JSON document structure for expressing a sequence of operations to apply to a JSON document

Using .Net Core Web API with JsonPatchDocument

I am using JsonPatchDocument to update my entities, this works well if the JSON looks like the following [ { "op": "replace", "…

asp.net-core json-patch
jsonpatch adding element to array and creating it if not exist

I'm trying to append an element to an array. But i cannot ensure that the array alread exists. So it …

json-patch
What is the JSON Patch format to remove an element from an array?

I have the following JSON document, from which I want to remove the "roleId2" element from the "roles" field's array …

json-patch
How can I create a JsonPatchDocument from comparing two c# objects?

Given I have two c# objects of the same type, I want to compare them to create a JsonPatchDocument. I …

c# json-patch
Generate JSON-patch from two objects

Given two Javascript objects (A and B), is there a way to generate the JSON patch, so that when that …

javascript json json-patch
jsonpatch path to update array object by object ID

I am trying to figure out the best way to patch a collection of objects. I am trying to change …

c# json asp.net-web-api json-patch
PATCH when working with DTO

I'm working on asp.net core webAPi and EF core, and want to implement "update" operation (partially edit entity). I …

c# rest asp.net-core entity-framework-core json-patch
Modify @OneToMany entity in Spring Data Rest without its repository

In my project I use object of type A which has OneToMany relation (orphanRemoval = true, cascade = CascadeType.ALL, fetch = FetchType.…

java rest spring-data-rest json-patch