Processing JSON with Gson streaming APIs

In addition to the object model APIs, the Gson library supports the streaming APIs for reading and writing the JSON representations. The streaming APIs in Gson follow the pull parser model. Here is a list of the important streaming API classes in Gson:

Class

Description

com.google.gson.stream.JsonReader

This class reads the JSON-encoded value as a stream of tokens. Tokens are read in the same order as they appear in the JSON document.

com.google.gson.stream.JsonWriter

This class writes a JSON-encoded value to the stream, one token at a time.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.83.176