Questions tagged [rfc6902]

Request for Comments JavaScript Object Notation (JSON) Patch

Request for Comments JavaScript Object Notation (JSON) Patch

6 questions
6
votes
3 answers

How is the tilde escaping in the JSON Patch RFC supposed to operate?

Referencing https://www.rfc-editor.org/rfc/rfc6902#appendix-A.14: A.14. ~ Escape Ordering An example target JSON document: { "/": 9, "~1": 10 } A JSON Patch document: [ {"op": "test", "path": "/~01", "value": 10} ] The resulting…
OmnipotentEntity
  • 16,531
  • 6
  • 62
  • 96
5
votes
1 answer

How do you use JSON Patch with Spring Data REST?

According to the Sprind Data Rest Docs it supports media type application/patch+json. Perhaps this assumption is wrong, but I take this to mean Spring Data Rest supports JSON Patch (RFC 6902). How do you get it to work? Here's what I've tried: Added…
peterl
  • 1,881
  • 4
  • 21
  • 34
3
votes
2 answers

Java Spring Patch RFC-6902 Instant type conversion exception

I have patching problem which is related to converting the String value the corresponding type. When I try to patch the "Locale" type (or primitives), it works. But it fails for Instant Entity: @JsonIgnore @Field("locale") private Locale…
Daniel Donev
  • 284
  • 3
  • 6
  • 20
2
votes
2 answers

How to increment value with JSON Patch?

We need to update a counter through our REST API and we're using JSON Patch for our PATCH calls, so it should be something like this: {"op":"increment", "path":"/counter", "value": 1 } The problem is JSON Patch doesn't support this type of…
1
vote
0 answers

Visual representation for JSON Patch

I've developed a tool which creates JSON patch results in a .csv file specifying differences between two sets of JSON files. I want the business side of my organisation to be able to easily interpret this data and wondered if there is a UI or…
gsdev
  • 259
  • 4
  • 14
1
vote
1 answer

HTTP PATCH a joined table?

The RFC 6902 defines a lot of things and clearly. Except two related things: How do you patch a table that is joined to the resource? And when the join has multiple rows? Eg. GET /news/123 [ {"title": "Hello", "contents": "World",…
Juha Untinen
  • 1,806
  • 1
  • 24
  • 40