This page lists the methods of a JSON object variable. Methods can be accessed using the dot(.
) operator.
containsKey()
jsonobject.containsKey( keyStr )
Returns a boolean value indicating whether the JSON object contains a specified key.
BOOL
getBool()
jsonobject.getBool( keyStr )
Returns the boolean value associated with a specified key.
BOOL
getDouble()
jsonobject.getDouble( keyStr )
Returns the double value associated with a specified key.
DOUBLE
getInt()
jsonobject.getInt( keyStr )
Returns the integer value associated with a specified key.
INT
getJsonArray()
jsonobject.getJsonArray( keyStr )
Returns the JSON array value associated with a specified key.
JSONARRAY
getJsonObject()
jsonobject.getJsonObject( keyStr )
Returns the value associated with a specified key.
JSONOBJECT
getString()
jsonobject.getString( keyStr )
Returns the string value associated with a specified key.
STRING
Parameter
Description
Data type
keyStr
A string.
STRING
Parameter
Description
Data type
keyStr
The key whose value to return
STRING
Parameter
Description
Data type
keyStr
The key whose value to return
STRING
Parameter
Description
Data type
keyStr
The key whose value to return
STRING
Parameter
Description
Data type
keyStr
The key whose value to return
STRING
Parameter
Description
Data type
keyStr
The key whose value to return
STRING
Parameter
Description
Data type
keyStr
The key whose value to return
STRING