AsdfNode

Object-tree structure for mutable Asdf representation.

AsdfNode can be used to construct and manipulate JSON objects. Each AsdfNode can represent either a dynamic JSON object (associative array of AsdfNode nodes) or a ASDF JSON value. JSON arrays can be represented only as JSON values.

Constructors

this
this(Asdf data)

Construct AsdfNode recursively.

Members

Functions

add
void add(Asdf data)

Adds data to the object-tree recursively.

added
Asdf added(AsdfNode node)

Returns the subset of the node which is not represented in the object-tree. If a leaf is represented but has a different value then it will be included in the return value. Returned value has ASDF format.

addedImpl
void addedImpl(AsdfSerializer serializer, AsdfNode node)
Undocumented in source. Be warned that the author may not have intended to support it.
get
AsdfNode get(AsdfNode value, char[][] keys)
isLeaf
bool isLeaf()

Returns true if the node is leaf.

opCast
Asdf opCast()
opEquals
bool opEquals(AsdfNode rhs)
opIndex
AsdfNode opIndex(const(char)[][] keys)
opIndexAssign
void opIndexAssign(AsdfNode value, const(char)[][] keys)
remove
void remove(Asdf data)

Removes keys from the object-tree recursively.

removed
Asdf removed(AsdfNode node)

Returns the subset of the object-tree which is not represented in node. If a leaf is represented but has a different value then it will be included in the return value. Returned value has ASDF format and its leaves are set to null.

serialize
void serialize(AsdfSerializer serializer)

Serialization primitive

Variables

children
AsdfNode[const(char)[]] children;

Children nodes.

data
Asdf data;

Leaf data.

Meta