Represents JSON array object.
Note: to parse string into JsonObject use [func-jsonparse].
size ⇒ Integer
-
Number of elements in array
values ⇒ Array
-
NXSL array with JSON array elements
append(value) ⇒ void
-
Appends value to JSON array.
value |
? |
Add value to JSON array. Value type may vary. |
get(index) ⇒ ?
-
Returns array value by the index. Value type depends on the type used in JSON.
index |
Integer |
Index of element in array |
Attribute value
insert(index, value) ⇒ void
-
Sets value to the provided index in JSON array, moving existing element in this position
index |
Integer |
Index of element in array |
value |
? |
Add value to JSON array. Value type may vary. |
serialize() ⇒ String
-
Returns string with serialized JSON
String with serialized JSON
set(index, value) ⇒ void
-
Sets value to the provided index in JSON array, in place of existing element in this position
index |
Integer |
Index of element in array |
value |
? |
Add value to JSON array. Value type may vary. |