Array


Object Hierarchy:

Json.Array Json.Array Json.Array

Description:

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

`JsonArray` is the representation of the array type inside JSON.

A `JsonArray` contains [[email protected]] 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 `JsonArray` using [[email protected]] and [[email protected]].

To append an element, use [[email protected]_element].

To extract an element at a given index, use [[email protected]_element].

To retrieve the entire array in list form, use [[email protected]_elements].

To retrieve the length of the array, use [[email protected]_length].


Namespace: Json
Package: json-glib-1.0

Content:

Creation methods:

Methods:




2022 vala-language.org