YoVDO

Java EE 8: JSON-B

Offered By: LinkedIn Learning

Tags

Java EE Courses JSON Courses JAX-RS Courses

Course Description

Overview

Learn how to use JSON data in your Java applications. Find out how to convert Java objects to and from JSON using the JSON-B API built into Java EE.

Syllabus

Introduction
  • Map Java objects to JSON
  • What you should know
1. Overview and Setup
  • JSON and its significance
  • JSON structure: JSON types
  • JSON vs. XML
  • JSON-B API overview
  • Application setup
2. JSON Binding API: Default Mapping
  • Default mapping APIs: single bean
  • General default settings
  • Visibility settings: Fields with getters and setters
  • Visibility settings: Final, static, and transient fields
  • Define beans
  • Define data
  • Testing with JSON-B
  • Default mapping types
  • Data types supported
3. JSON Binding API: Customized Mapping, Part 1
  • Customize mapping
  • Formatting output
  • Changing bean attribute names: JsonbProperty
  • PropertyNamingStrategy
  • Customize order of serialized properties
  • JsonbTransient, transient modifier
  • Custom PropertyVisibility Strategy
4. JSON Binding API: Customized Mapping, Part 2
  • Handling null serializations
  • Custom constructors
  • Test custom constructors
  • Applying date/number formats to attributes
  • Binary data strategies
  • iJSON support
5. Adapters and Serializers
  • Need for JSON-B adapters
  • adaptToJson
  • adaptFromJson
  • Custom serializers and deserializers
  • Problem deserializing inheritance hierarchy
  • Implementing serializer interface
  • Implementing deserializer interface
  • Testing
6. JSON-B in a Web Application
  • Setup for a JAX-RS application
  • Build RESTful methods
  • Generate data and test
  • Add more RESTful methods
  • Test all RESTful methods
Conclusion
  • Next steps

Taught by

Ketkee Aryamane

Related Courses

Java Programming Bootcamp - Build Real Projects with JavaFX
Udemy
Java EE 8: JavaServer Faces JSF 2.3
LinkedIn Learning
Java EE: Design Patterns and Architecture
LinkedIn Learning
Java EE: Packaging and Deploying an App
LinkedIn Learning
Java EE: RESTful Service with JAX-RS 2.0
LinkedIn Learning