Package | Description |
---|---|
com.google.api.client.json |
Utilities for JSON as specified in RFC 4627: The
application/json Media Type for JavaScript Object Notation (JSON) and Introducing JSON.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
JsonParser.parse(Class<T> destinationClass,
CustomizeJsonParser customizeParser)
Beta Parse a JSON object, array, or value into a new instance of the given destination class, optionally using the given parser customizer. |
void |
JsonParser.parse(Object destination,
CustomizeJsonParser customizeParser)
Beta Parse a JSON object from the given JSON parser into the given destination object, optionally using the given parser customizer. |
Object |
JsonParser.parse(Type dataType,
boolean close,
CustomizeJsonParser customizeParser)
Beta Parse a JSON object, array, or value into a new instance of the given destination class, optionally using the given parser customizer. |
<T> T |
JsonParser.parseAndClose(Class<T> destinationClass,
CustomizeJsonParser customizeParser)
Beta Parse a JSON object, array, or value into a new instance of the given destination class using JsonParser.parse(Class, CustomizeJsonParser) , and then closes the parser. |
void |
JsonParser.parseAndClose(Object destination,
CustomizeJsonParser customizeParser)
Beta Parse a JSON Object from the given JSON parser -- which is closed after parsing completes -- into the given destination object, optionally using the given parser customizer. |
<T> Collection<T> |
JsonParser.parseArray(Class<?> destinationCollectionClass,
Class<T> destinationItemClass,
CustomizeJsonParser customizeParser)
Beta Parse a JSON Array from the given JSON parser into the given destination collection, optionally using the given parser customizer. |
<T> void |
JsonParser.parseArray(Collection<? super T> destinationCollection,
Class<T> destinationItemClass,
CustomizeJsonParser customizeParser)
Beta Parse a JSON Array from the given JSON parser into the given destination collection, optionally using the given parser customizer. |
<T> Collection<T> |
JsonParser.parseArrayAndClose(Class<?> destinationCollectionClass,
Class<T> destinationItemClass,
CustomizeJsonParser customizeParser)
Beta Parse a JSON Array from the given JSON parser (which is closed after parsing completes) into the given destination collection, optionally using the given parser customizer. |
<T> void |
JsonParser.parseArrayAndClose(Collection<? super T> destinationCollection,
Class<T> destinationItemClass,
CustomizeJsonParser customizeParser)
Beta Parse a JSON Array from the given JSON parser (which is closed after parsing completes) into the given destination collection, optionally using the given parser customizer. |
Copyright © 2011–2022 Google. All rights reserved.