JSON Processing 1.1 New Features
- JSON Pointer
Defines a string syntax for referencing a specific value within a JSON document. JSON Pointer includes
APIs for extracting values from a target document and transforming them to create a new JSON document.
- JSON Patch
Defines a format for expressing a sequence of operations to be applied to a JSON document.
- JSON Merge Patch
Defines a format and processing rules for applying operations to a JSON document that are based upon
specific content of the target document.
These new features allow user handle json documents more easily.
Description of the Example
This sample illustrates how to use JSON Patch, JSON Merge Patch and JSON Pointer to update a JSON document.
Use This Example
Input nick name and age, then click the save button.
Client will send a post request to server according to your input. Server will handle the request by override
servlet doPost() method. And then use JsonPatch or JsonMergePatch
to update the json document.