Interface JsonObject
- All Superinterfaces:
JsonElement
-
Method Summary
Modifier and TypeMethodDescriptionentrySet()Returns the object's key-value pairsReturns the object property as generic elementgetAsJsonArray(String string) Returns the object property as a StringgetAsJsonObject(String string) Returns the object property as a JsonObjectgetAsJsonPrimitive(String string) Returns the object property as a wrapped primitivebooleanCheck if the object has a propertyMethods inherited from interface JsonElement
autoCast, getAsBoolean, getAsFloat, getAsInt, getAsJsonArray, getAsJsonObject, getAsJsonPrimitive, getAsNumber, getAsString, isJsonArray, isJsonNull, isJsonObject, isJsonPrimitive
-
Method Details
-
getAsJsonArray
-
getAsJsonObject
Returns the object property as a JsonObject- Parameters:
string- name of the property- Returns:
- the JsonObject
-
has
Check if the object has a property- Parameters:
string- name of the property- Returns:
- true if it exists, false otherwise
-
get
Returns the object property as generic element- Parameters:
string- name of the property- Returns:
- the element
-
entrySet
Map.Entry<String, JsonElement>[] entrySet()Returns the object's key-value pairs- Returns:
- an array of key-value pairs
-
getAsJsonPrimitive
Returns the object property as a wrapped primitive- Parameters:
string- name of the property- Returns:
- the wrapped primitive
-