DataNode
Table of contents
Interface of a data node
Interface description
ArrayAsParams() []Params
Returns an array of a params(map) if that node is an array
ArrayElement(index int) DataValue
Returns a value of an array if that node type is an array
ArrayElements() []DataValue
Returns an array of objects if that node is an array
ArraySize() int
Returns array size if that node type is an array
Object() DataObject
Returns node as object if that node type is an object
Tag() string
Returns a tag name
Text() string
Returns node text
Type() int
Returns a node type. Possible values are (0
)TextNode
, (1
)ObjectNode
and (2
)ArrayNode