Join Alex Theedom for an in-depth discussion in this video Parse JSON data, part of JSON Processing with Java EE.
- [Instructor] Okay, let's get started…by writing code that passes the json document…that we have been using throughout this course.…Okay, so let's open the streaming example one class…from the exercise files.…And as you can see, I have already created a method…called pause json string.…This is where we are going to write the pausing logic.…I also assigned the json data…into a string variable called json.…Ready for us to stream.…Firstly, we create the passer…from the static factory method in the json class.…And pass it an instance of the reader object.…
So, let's do that.…So as before, we start without json passer.…Like so.…And then from the json class,…we call a factory method.…And from that factory method…we pass in a string reader.…And into that string reader,…we pass the string that we want to pass…just as we had done before.…In this case, a simple string reader instance…is sufficient for our purposes.…
Nevertheless, you could just as easily…pass it an input stream instead.…Now we have a pasted instance configured…
In this course, discover how to use the Java Enterprise Edition (EE) JSON-Processing API. With its two programming models, JSON-Processing is one of the simplest ways to generate, query, and parse JSON data, and you'll find that implementing it in your projects is quick and easy. Join Alex Theedom as he covers an array of topics, including how to use both the object model and the streaming model, how to traverse a JSON structure, and how to parse JSON data using the extensive builder APIs. When you wrap up this course, you'll be ready to develop with this essential and powerful API.
- Working with JSON and Java
- JSON-Processing API features
- The Java EE JSON object model
- Creating a model from a JSON string
- Building a JSON model
- Traversing the JSON model
- Outputting the JSON model to a data stream
- Parsing and writing JSON data
Skill Level Intermediate
Java EE: Servlets and JavaServer Faceswith Patrick Royal2h 11m Intermediate
Java Platforms Compared: SE vs EE vs MEwith Peggy Fisher25m 38s Intermediate
WebSocket Programming with Java EEwith Alex Theedom1h 29m Intermediate
1. JSON and Java
Work with JSON and Java3m 57s
2. JSON-Processing API Features
3. The Java EE JSON Object Model
4. The Java EE JSON Streaming Model
Next steps1m 19s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.