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

Required if nested in an object node, optional otherwise.

Value

Always returns null. Only value nodes can have values.

Children

Returns an ordered sequence of child nodes.

ChildrenCount

Returns the number of elements in the Children sequence.

this[name]

Always returns null. Arrays cannot be navigated with scoping.

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"]]
pageSettings nodespageSettings nodes merging

Last updated