O'Reilly logo

RESTful Java Patterns and Best Practices by Bhakti Mehta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

JSON Patch

JSON Patch is part of RFC 6902. It is a standard designed to allow performing operations on JSON documents. JSON Patch can work with the HTTP PATCH method. It is useful to provide partial updates to JSON documents. The media type "application/json-patch+json" is used to identify such patch documents.

It takes the following members:

  • op: This identifies the operation to be performed on the document. The acceptable values are "add", "replace", "move", "remove", "copy", or "test". Any other value is an error.
  • path: This is the JSON pointer that represents the location in the JSON document.
  • value: This denotes the value to be replaced in the JSON document.

The move operation takes a "from" member, which identifies the location in the target document ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required