JSON Processing with Java EE
1h 4mIntermediate2017-06-05
Authors

Alex Theedom
Enterprise Developer, Published Author, Trainer
Course details
JSON is a ubiquitous and lightweight data transfer format used for the storage and interchange of information in an organized and human-readable manner. It is commonly used as the data format of choice in microservices, RESTful APIs, and NoSQL data stores. Knowing how to manipulate JSON is crucial knowledge for any developer.
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.
Learning objectives
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
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.
Learning objectives
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
Skills covered
JSONJava EEBack-End Web DevelopmentJavaOracleFront-End Web DevelopmentWeb DevelopmentOpen SourceOne-Off
Concepts
0. Introduction
- 01 - Welcome
- 02 - What you should know
- 03 - How to use the exercise files
- 04 - Challenges
1. JSON and Java
- 05 - Work with JSON and Java
2. JSON-Processing API Features
- 06 - JSON-P API introduction
- 07 - Headline features of JSON-P
3. The Java EE JSON Object Model
- 08 - Introduction to the object model
- 09 - Create a model from a JSON string
- 10 - Create a model from a JSON file
- 11 - JSON builder API
- 12 - Build a JSON model
- 13 - How to traverse the model
- 14 - Traverse the JSON model
- 15 - Output the JSON model to a data stream
- 16 - Challenge - JSON array object
- 17 - Solution - JSON array object
- 18 - Challenge - Write unit test
- 19 - Solution - Write unit test
- 20 - Challenge - Output JSON object to a file
- 21 - Solution - Output JSON object to a file
4. The Java EE JSON Streaming Model
- 22 - Introduction to the streaming model
- 23 - Parse JSON data
- 24 - Write JSON data
- 25 - Challenge - Find the value of a JSON key
- 26 - Solution - Find the value of a JSON key
- 27 - Challenge - Output JSON object to a file
- 28 - Solution - Output JSON object to file
Conclusion
- 29 - Next steps