Join Ketkee Aryamane for an in-depth discussion in this video Default mapping types, part of Java EE 8: JSON-B.
- [Instructor] Okay, so the JSON-B Default Mapping Types…that we have is it can map an object for you,…map a single bean or a complete hierarchy of objects…or a complete collection of objects…the way we saw in the previous example.…It can also map a collection.…And I'm talking about an open collection,…which can accept any kind of value…that you feed into it.…So when you talk about collections in Java,…you have Lists, Sets, and Maps.…All of these can be very comfortably mapped…using the JSON binding API.…And then you can also map a generics collection.…And that is interesting, because when you talk about…generics collection you have…List, Set, and Map instances…with specific type of objects that you add into it.…
So we have already seen the first kind of mapping,…we have seen it for a very large number of objects.…Now we will see the collection mapping…and we'll see collection mapping…even with the generics type.…Let's go back to the IDE.…And I'm going to make a test class here…which says…test…collections.…Grab the main method.…
- 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: RESTful Service with JAX-RS 2.0with Alex Theedom2h 17m Intermediate
Java EE: Servlets and JavaServer Pages (JSP)with Ketkee Aryamane6h 14m 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.