Types in JSON for streaming API

The streaming functionality of JSON is the same as the one found in other website-generation languages such as XML. The interfaces that empower the streaming side include JsonParser and JsonGenerator.

The JsonParser class contains the methods that are required to parse the data that is being received through the streaming model. JsonGenerator, on the other hand, contains the methods that allow programs to use this JSON data and send it out to an output. Here, we will discuss the main interface options available in this method.

The JsonParser class provides read-only access to the data, which is what is required for a parsing programming model that only needs to pull the data out. The application runs the calling ...

Get Java 9 High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.