take_array


Description:

public void take_array (owned Array array)

Sets array inside this.

The reference count of array is not increased.

It is a programmer error to call this on a node which doesn’t hold an array value. Use `JSON_NODE_HOLDS_ARRAY` first.

Parameters:

this

a node initialized to `JSON_NODE_ARRAY`

array

a JSON array