init_object


Description:

[ Version ( since = "0.16" ) ]
public unowned Node init_object (Object? object)

Initializes this to `JSON_NODE_OBJECT` and sets object into it.

This function will take a reference on object.

If the node has already been initialized once, it will be reset to the given type, and any data contained will be cleared.

Parameters:

this

the node to initialize

object

the JSON object to initialize this with, or `NULL`

Returns:

the initialized node