Method
JsonNodeinit_array
Declaration [src]
JsonNode*
json_node_init_array (
JsonNode* node,
JsonArray* array
)
Description [src]
Initializes node to JSON_NODE_ARRAY and sets array into it.
This function will take a reference on array.
If the node has already been initialized once, it will be reset to the given type, and any data contained will be cleared.
| Available since: | 0.16 |
Parameters
array |
JsonArray |
The JSON array to initialize |
|
The argument can be NULL. | |
| The data is owned by the caller of the function. |
Return value
| Returns: | JsonNode |
The initialized node. |
|
| The data is owned by the instance. |