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 property is present on the object.
|
Map<String,JsonProperty> |
getProperties()
Retrieves a
Map representing the properties of the JSON object. |
<T> T |
getValue(String name,
JsonValueType<T> valueType)
Retrieves the value of a property with the given name.
|
<T> T getValue(String name, JsonValueType<T> valueType)
If there is no property 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 property. Cannot be null.valueType
- the requested value type. Cannot be null.Map<String,JsonProperty> getProperties()
Map
representing the properties of the JSON object. The keys of the Map
are the names
of the properties, and the values are JsonProperty
objects representing the
types of the properties.Map
of all properties of the JSON objectboolean contains(String name)
name
- the name of the property. Cannot be null.Copyright © Veeva Systems 2017–2022. All rights reserved.