Object Hierarchy:

Object hierarchy for Array


[ CCode ( ref_function = "json_array_ref" , type_id = "json_array_get_type ()" , unref_function = "json_array_unref" ) ]
[ Compact ]
public class Array

Array is the representation of the array type inside JSON.

It contains Node elements, which may contain fundamental types, other arrays or objects.

Since arrays can be expensive, they are reference counted. You can control the lifetime of a Array using @ref and unref .

To append an element, use add_element. To extract an element at a given index, use get_element. To retrieve the entire array in list form, use get_elements. To retrieve the length of the array, use get_length.

Namespace: Json
Package: json-glib-1.0


Creation methods: