Node.length

size_t length() @property const @safe

If this is a collection, return its _length.

Otherwise, throw NodeException.

Returns

Number of elements in a sequence or key-value pairs in a mapping.

Throws

NodeException if this is not a sequence nor a mapping.