public interface JsonObject
Modifier and Type | Method and Description |
---|---|
String |
asString()
Formats the object as a
String . |
boolean |
contains(String name)
Determines if the specified attribute is present on the object.
|
<T> T |
getValue(String name,
JsonValueType<T> valueType)
Retrieves the value of an attribute with the given name.
|
<T> T getValue(String name, JsonValueType<T> valueType)
If there is no attribute with the given name, this throws an exception.
If the value for the given name is null
, this returns null
.
T
- the requested value typename
- the name of the attribute. Cannot be null.valueType
- the requested value type. Cannot be null.boolean contains(String name)
name
- the name of the attribute. Cannot be null.Copyright © Veeva Systems 2017–2019. All rights reserved.