November 2017
Intermediate to advanced
420 pages
10h 29m
English
The following example reads the JSON representation of the Employee object from the emp.json file and uses the javax.json.bind.JsonBuilder to create an instance of javax.json.bind.Jsonb to map the Employee object to JSON representation and vice-versa:
The implementation of the preceding steps is demonstrated in the following program:
public class JSR367JsonbDefaultBindingExample { private static final Logger logger = Logger.getLogger(JSR367JsonbDefaultBindingExample.class.getName()); ...