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:
Name | Type | Description | Default |
---|---|---|---|
key | String | - | - |
Returns:
Type | Description |
---|---|
AnyType | - |
Example:
-- example coming soon
clear()
Clears this object
clear()
Returns:
Type | Description |
---|---|
nil | - |
Example:
-- example coming soon
containsKey()
Does this object contains specified key
containsKey(key)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key | String | - | - |
Returns:
Type | Description |
---|---|
Boolean | - |
Example:
-- example coming soon
containsValue()
Does this object contains specified value
containsValue(value)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value | AnyType | - | - |
Returns:
Type | Description |
---|---|
Boolean | - |
Example:
-- example coming soon
put()
Puts provided value at specified key
put(key, value)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key | String | - | - |
value | AnyType | - | - |
Returns:
Type | Description |
---|---|
AnyType | - |
Example:
-- example coming soon
remove()
Remove value with specified key from object
remove(key)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key | String | - | - |
Returns:
Type | Description |
---|---|
AnyType | - |
Example:
-- example coming soon
size()
Returns size of this object
size()
Returns:
Type | Description |
---|---|
Integer | - |
Example:
-- example coming soon