Array nodes

Array nodes are containers used to represent sequences, such as JSON arrays. Each array node contains an ordered list of child nodes. There is no limit to nesting: arrays can contain other arrays and objects. Elements of an array are not required to have names.

Array nodes are typically mapped to ordered collections during binding.

Properties

roperty

Description

Name

Value

Children

Returns an ordered sequence of child nodes.

ChildrenCount

Returns the number of elements in the Children sequence.

this[name]

Equality

Two array nodes are considered equal if their Children sequences are equal elementwise and their names match up to differences in case.

Representation

Array(Value("1"), Value("2)) --> ["1", "2"]
Array(Object(), Object()) --> [{}, {}]
Array(Array(Value("1")), Array(Value("2"))) --> [["1"], ["2"]]

Last updated

Was this helpful?