add_value


Description:

public unowned Builder? add_value (owned Node node)

Adds a value to the currently open object member or array.

If called after [method@Json.Builder.set_member_name], sets the given node as the value of the current member in the open object; otherwise, the node is appended to the elements of the open array.

The builder will take ownership of the node.

Parameters:

this

a builder

node

the value of the member or element

Returns:

the builder instance