Discover how to use the Java EE JSON-Processing API. Learn how to use both the object model and the streaming model, how to traverse a JSON object, and much more.
Overview
Syllabus
Introduction
- Welcome
- What you should know
- How to use the exercise files
- Challenges
- Work with JSON and Java
- JSON-P API introduction
- Headline features of JSON-P
- Introduction to the object model
- Create a model from a JSON string
- Create a model from a JSON file
- JSON builder API
- Build a JSON model
- How to traverse the model
- Traverse the JSON model
- Output the JSON model to a data stream
- Challenge: JSON array object
- Solution: JSON array object
- Challenge: Write unit test
- Solution: Write unit test
- Challenge: Output JSON object to a file
- Solution: Output JSON object to a file
- Introduction to the streaming model
- Parse JSON data
- Write JSON data
- Challenge: Find the value of a JSON key
- Solution: Find the value of a JSON key
- Challenge: Output JSON object to a file
- Solution: Output JSON object to file
- Next steps
Taught by
Alex Theedom