Java with JSON
1h 22mIntermediate2022-01-25
Authors

Jon-Luke West
Software Developer, Product Engineer, Inventor
Course details
JSON is often used as the encoding for data sent and received by web services, but it can also be used to store data in files and much more. Understanding how JSON works is crucial to building feature-rich applications and experiences. In this course, instructor Jon-Luke West goes over the use of data serialization/deserialization, the way JSON acts as the format, the syntax of JSON, how to read and write JSON in an application, and additional ways you can control the way data is handled. Jon-Luke begins with JSON basics, such as data interchange formats, primitives, and reading and writing JSON. He walks you through a simple JSON implementation, then shows you how to work with arrays. Plus, Jon-Luke covers additional formatting and customization options, like writing, reading, and testing nested JSON, as well as selecting fields to expose, handling null values, and much more.
Skills covered
JavaOracleFront-End Web DevelopmentWeb DevelopmentProgramming LanguagesSoftware DevelopmentOne-Off
Concepts
0. Introduction
- 01 - Your apps and JSON
- 02 - What you should know
- 03 - Exercise files
1. JSON Basics
- 04 - Data interchange formats
- 05 - JSON syntax
- 06 - Primitives
- 07 - Writing JSON
- 08 - Challenge - Reading and writing JSON
- 09 - Solution - Reading and writing JSON
2. Simple JSON Implementation
- 10 - Explore the sample app
- 11 - JSON libraries
- 12 - Add Gson as a dependency
- 13 - Use JSON to write data
- 14 - Read JSON from file
- 15 - Add properties to the Note class
- 16 - Add new field to the UI
3. JSON Arrays
- 17 - Working with arrays
- 18 - Write JSON arrays
- 19 - Read JSON arrays
- 20 - Define a JsonNotesFile class
- 21 - Keyed collections
- 22 - Use a map of notes
4. Additional Formatting and Customization
- 23 - Write nested JSON
- 24 - Read nested JSON
- 25 - Test nested JSON
- 26 - Select fields to expose
- 27 - Configure serialized names
- 28 - ISO 8601
- 29 - Date and time in JSON
- 30 - Handle null values
Conclusion
- 31 - Next steps
Related courses
- JSON Processing with Java EE
- Java for All Platforms: Desktop, Web, and Mobile Development
- Java EE 8: Web Services
- Android Development Essential Training: Manage Data with Kotlin
- Java EE 8: JSON-B
- WebSocket Programming with Java EE
- Java EE: RESTful Service with JAX-RS 2.0
- Java Design Patterns and APIs for Android
Related learn paths
- Become a Java Programmer
- Become a Java EE 7 Developer
- Become a Spring Developer
- Getting Started In Spring Development
- Prepare for the Google Associate Android Developer Certification
- Become an Android Mobile App Developer
- Prepare for the MongoDB Java Developer Associate Certification
- Become a Software Developer