ObjectIter

An iterator object used to iterate over the members of a JSON object.

json.object_iter.ObjectIter must be allocated on the stack and initialised using json.object_iter.ObjectIter.init_ or json.object_iter.ObjectIter.initOrdered.

The iterator is invalidated if the object is modified during iteration.

All the fields in the json.object_iter.ObjectIter structure are private and should never be accessed directly.

Members

Functions

initOrdered
void initOrdered(json.object.ObjectJson object)

Initialises the iter and associate it with object.

init_
void init_(json.object.ObjectJson object)

Initialises the iter and associate it with object.

next
bool next(string memberName, json.node.Node memberNode)

Advances the iterator and retrieves the next member in the object.

nextOrdered
bool nextOrdered(string memberName, json.node.Node memberNode)

Advances the iterator and retrieves the next member in the object.