From the course: Java EE 8 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

JSON Patch

JSON Patch - Java EE Tutorial

From the course: Java EE 8 Essential Training

Start my 1-month free trial

JSON Patch

- The Json processing API features a Json pointer and Json patch object that we can leverage when working with Json. The Json pointer allows us to use a string representing a path to a particular property in the Json to access the property value. Let's take a look. We're going to be working within our JMS consumer, and to start out I'm just going to remove some of the code related to our JsonParser. I'll take out the wild loop but I'm going to leave the tri-block and we're just going to swap out the parser with a reader. Okay, once we have our reader we can go ahead and we're going to extract the Json object using the reader. And to do that we just use the "Read Object" method on the Reader and then we're going to go ahead and build our Json pointer. And to do that we create the pointer similarly to how we created all the other interfaces so you'll see a "create pointer method" on the Json object,…

Contents