Builder.addValue

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

If called after json.builder.Builder.setMemberName, 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

node json.node.Node

the value of the member or element

Return Value

Type: json.builder.Builder

the builder instance