A LuaJsonArray object represents a JSON array.
If you have a LuaJsonArray object called myJsonArray you can call its methods using the ':' operator. For example:
myJsonArray:size()
| Constructor | Description |
|---|---|
| LuaJsonArray:new | The constructor for a LuaJsonArray object (creates a new LuaJsonArray). |
| Method | Description |
|---|---|
| append | Appends a value to the array. |
| clear | Clears the array, so that it contains no values. |
| copy | Copies the array. |
| empty | Checks whether the array is empty. |
| exists | Checks whether a specified path exists in the array. |
| existsByPath | Checks whether a specified path exists in the array. |
| ipairs | Returns an iterator function that you can use to iterate over all of the values in the array. |
| lookup | Returns the value at a specified path in the array. |
| lookupByPath | Returns the value at a specified path in the array. |
| size | Returns the size of the array. |
| string | Returns the array as a string. |