November 2017
Intermediate to advanced
420 pages
10h 29m
English
In the previous section, we discussed the APIs provided by JSR 353 to convert the JSON data into the Java object model. In this section, you will learn how to convert a Java object model into the JSON format, which is the opposite of the operation discussed in the previous section.
The very first step is to build an object model. You can use either of the following classes to generate the object model. The choice of the builder class depends on whether you want to generate a JSON object or a JSON array: