JSON Array Methods

This page lists the methods of a JSONARRAY object. Methods can be accessed via the dot(.) operator.

getBool()

Syntax

jsonarray.getBool( idx )

Description

Returns the boolean value at a specified index.

Return value

BOOL

Parameters

Parameter Description Data type

idx

The index of the value to return

INT

getDouble()

Syntax

jsonarray.getDouble( idx )

Description

Returns the double at a specified index.

Return value

DOUBLE

Parameters

Parameter Description Data type

idx

The index of the value to return

INT

getInt()

Syntax

jsonarray.getInt( idx )

Description

Returns the integer value at a specified index.

Return value

INT

Parameters

Parameter Description Data type

idx

The index of the value to return

INT

getJsonArray()

Syntax

jsonarray.getJSONArray( idx )

Description

Returns the JSONArray value at a specified index.

Return value

BOOL

Parameters

Parameter Description Data type

idx

The index of the value to return

INT

getJsonObject()

Syntax

jsonarray.getJsonObject( idx )

Description

Returns the JSONOBJECT value at a specified index.

Return value

JSONOBJECT

Parameters

Parameter Description Data type

idx

The index of the value to return

INT

getString()

Syntax

jsonarray.getString( idx )

Description

Returns the boolean value at a specified index.

Return value

STRING

Parameters

Parameter Description Data type

idx

The index of the value to return

INT

size()

Syntax

jsonarray.size()

Description

Returns the size of the array.

Return value

INT

Parameters

None.