Json.JsonObject

Represents a single json Object (a composite of named attribute/value pairs).

This is aliased as Composite

Members

Functions

add
Composite add(Attribute[] set)

Add a set of attribute/value pairs

append
Composite append(Attribute a)

Append an attribute/value pair

hashmap
Value[T[]] hashmap()

Construct and return a hashmap of Object attributes. This will be a fairly costly operation, so consider alternatives where appropriate

reset
Composite reset()
value
Value value(const(T)[] name)

Return a corresponding value for the given attribute name. Does a linear lookup across the attribute set

Properties

attributes
Iterator attributes [@property getter]

Iterate over our attribute names and values

Structs

Iterator
struct Iterator

Iterate over our attribute names. Note that we use a Fruct to handle this, since foreach does not operate cleanly with pointers (it doesn't automatically dereference them), whereas using x.attributes() does.

Meta