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(java.lang.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(java.lang.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. |
java.lang.Object |
JsonParser.parse(java.lang.reflect.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(java.lang.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(java.lang.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> java.util.Collection<T> |
JsonParser.parseArray(java.lang.Class<?> destinationCollectionClass,
java.lang.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(java.util.Collection<? super T> destinationCollection,
java.lang.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> java.util.Collection<T> |
JsonParser.parseArrayAndClose(java.lang.Class<?> destinationCollectionClass,
java.lang.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(java.util.Collection<? super T> destinationCollection,
java.lang.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-2018 Google. All Rights Reserved.