Join Ketkee Aryamane for an in-depth discussion in this video Define beans, part of Java EE 8: JSON-B.
- [Instructor] Now that we've looked at…the simple, single-bean mapping in JSON binding,…let's take a look at a little complicated case…where we're trying to have a lot of…objects created the way we do it in our live projects.…Let's say I'm trying to take an order from…Amazon or eBay and trying to represent it…in the form of an object in Java.…I will have an order object.…Every order is for a customer,…so customer is another object.…Then every order, we have order details,…so order details could be shipping address to…where that order has to be shipped to,…or it could have the products that…the order comprises of and the amount…and all of those details.…
We're going to create this entire object's set…within our project and then we'll see how to use…JSON binding for JSON serialization and de-serialization.…Let's start off by defining the fields first.…The first step is to create all the beans…as per the about icon that we saw.…Let's go back to the IDE.…Let's go to the beans folder and first create…a class called Order.…
- JSON and JSON-B API basics
- Default mapping
- Defining beans and data
- Customized mapping
- Customizing the order of serialized properties
- Customizing constructors
- Working with binary data
- Custom serializers and deserializers
- Demo: Using JSON-B in a web application
Skill Level Intermediate
Java EE: Servlets and JavaServer Pages (JSP)with Ketkee Aryamane6h 14m Intermediate
Java EE: RESTful Service with JAX-RS 2.0with Alex Theedom2h 17m Intermediate
Map Java objects to JSON1m 14s
1. Overview and Setup
2. JSON Binding API: Default Mapping
3. JSON Binding API: Customized Mapping, Part 1
4. JSON Binding API: Customized Mapping, Part 2
5. Adapters and Serializers
6. JSON-B in a Web Application
- 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.