November 2017
Intermediate to advanced
420 pages
10h 29m
English
In this section, you will learn the use of streaming APIs for converting JSON data into appropriate Java classes.
This example illustrates the use of streaming APIs for converting a JSON array of the employee objects present in the emp-array.json file into an appropriate Java class representation.
The following code snippet illustrates how you can use javax.json.stream.JsonParser, which follows the streaming parsing model, to read the content from the emp-array.json file:
//Other imports are removed for brevity import javax.json.stream.JsonParser; ...