Since 0.8add_Conveniently adds an array element into an array.
If value is NULL, a null element will be added instead.
See also: Json.Array.add_element, Json.Node.take_array
Since 0.8add_Conveniently adds the given boolean value into an array.
See also: Json.Array.add_element, Json.Node.set_boolean
the boolean value to add
Since 0.8add_Conveniently adds the given floating point value into an array.
See also: Json.Array.add_element, Json.Node.set_double
the floating point value to add
Since 0.8add_Conveniently adds the given integer value into an array.
See also: Json.Array.add_element, Json.Node.set_int
the integer value to add
Since 0.8add_Conveniently adds a null element into an array
See also: Json.Array.add_element, JSON_NODE_NULL
Since 0.8add_Conveniently adds an object into an array.
If value is NULL, a null element will be added instead.
See also: Json.Array.add_element, Json.Node.take_object
Since 0.8add_Conveniently adds the given string value into an array.
See also: Json.Array.add_element, Json.Node.set_string
the string value to add
Since 0.6dup_Since 1.2equalSince 0.8foreach_Iterates over all elements of an array, and calls a function on each one of them.
It is safe to change the value of an element of the array while iterating over it, but it is not safe to add or remove elements from the array.
the function to be called on each element
Since 0.8get_Conveniently retrieves the array at the given position inside an array.
See also: Json.Array.get_element, Json.Node.get_array
the index of the element to retrieve
the array
Since 0.8get_Conveniently retrieves the boolean value of the element at the given position inside an array.
See also: Json.Array.get_element, Json.Node.get_boolean
the index of the element to retrieve
the boolean value
Since 0.8get_Conveniently retrieves the floating point value of the element at the given position inside an array.
See also: Json.Array.get_element, Json.Node.get_double
the index of the element to retrieve
the floating point value
Since 0.8get_Conveniently retrieves the integer value of the element at the given position inside an array.
See also: Json.Array.get_element, Json.Node.get_int
the index of the element to retrieve
the integer value
Retrieves the length of the given array
the length of the array
Since 0.8get_Conveniently checks whether the element at the given position inside the
array contains a null value.
See also: Json.Array.get_element, Json.Node.is_null
the index of the element to retrieve
TRUE if the element is null
Since 0.8get_Conveniently retrieves the object at the given position inside an array.
See also: Json.Array.get_element, Json.Node.get_object
the index of the element to retrieve
the object
Since 0.8get_Conveniently retrieves the string value of the element at the given position inside an array.
See also: Json.Array.get_element, Json.Node.get_string
the index of the element to retrieve
the string value
Since 1.2hashSince 1.2is_Check whether the given array has been marked as immutable by calling
Json.Array.seal on it.
true if the array is immutable
Removes the element at the given position inside an array.
This function will release the reference held on the element.
the position of the element to be removed
Since 1.2sealReleases a reference on the given array.
If the reference count reaches zero, the array is destroyed and all its allocated resources are freed.
StaticnewStaticsized_
Json.Array is the representation of the array type inside JSON.
A Json.Array contains Json.Node elements, which may contain fundamental types, other arrays or objects.
Since arrays can be arbitrarily big, copying them can be expensive; for this reason, they are reference counted. You can control the lifetime of a Json.Array using Json.Array.ref and Json.Array.unref.
To append an element, use Json.Array.add_element.
To extract an element at a given index, use Json.Array.get_element.
To retrieve the entire array in list form, use Json.Array.get_elements.
To retrieve the length of the array, use Json.Array.get_length.