Skip to main content

JsonObject

JSON object, basically a table but more restricted to match JSON objects

warning

This page is a WIP. It contains all the information in Figura's documentation but we're working on adding more helpful descriptions.


get()​

Returns value bound to specified key. Consider using containsKey before, as object can contain nil values unlike regular table

get(key)

Parameters:

NameTypeDescriptionDefault
keyString--

Returns:

TypeDescription
AnyType-

Example:

-- example coming soon

clear()​

Clears this object

clear()

Returns:

TypeDescription
nil-

Example:

-- example coming soon

containsKey()​

Does this object contains specified key

containsKey(key)

Parameters:

NameTypeDescriptionDefault
keyString--

Returns:

TypeDescription
Boolean-

Example:

-- example coming soon

containsValue()​

Does this object contains specified value

containsValue(value)

Parameters:

NameTypeDescriptionDefault
valueAnyType--

Returns:

TypeDescription
Boolean-

Example:

-- example coming soon

put()​

Puts provided value at specified key

put(key, value)

Parameters:

NameTypeDescriptionDefault
keyString--
valueAnyType--

Returns:

TypeDescription
AnyType-

Example:

-- example coming soon

remove()​

Remove value with specified key from object

remove(key)

Parameters:

NameTypeDescriptionDefault
keyString--

Returns:

TypeDescription
AnyType-

Example:

-- example coming soon

size()​

Returns size of this object

size()

Returns:

TypeDescription
Integer-

Example:

-- example coming soon