Package com.jme3.plugins.json
Interface JsonObject
- All Superinterfaces:
JsonElement
A generic object/map
- Author:
- Riccardo Balbo
-
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 com.jme3.plugins.json.JsonElement
autoCast, getAsBoolean, getAsFloat, getAsInt, getAsJsonArray, getAsJsonObject, getAsJsonPrimitive, getAsNumber, getAsString
-
Method Details
-
getAsJsonArray
Returns the object property as a String- Parameters:
string- name of the property- Returns:
- the string
-
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
-