Module stdx.data.json.value

Defines a generic value type for builing and holding JSON documents in memory.

Example

// build a simple JSON document
auto aa = ["a": JSONValue("hello"), "b": JSONValue(true)];
auto obj = JSONValue(aa);

// JSONValue behaves almost as the contained native D types
assert(obj["a"] == "hello");
assert(obj["b"] == true);

Functions

NameDescription
opt(val) Allows safe access of sub paths of a JSONValue.

Structs

NameDescription
JSONValue Represents a generic JSON value.
WrappedBigInt Proxy structure that stores BigInt as a pointer to save space in JSONValue