JSONOutputRange

Output range that takes JSON primitives and outputs to a character output range.

This range provides the underlying functinality for writeJSON and toJSON and is well suited as a target for serialization frameworks.

Note that pretty-printing (GeneratorOptions.compact not set) is currently only supported for primitives of type JSONParserNode.

Constructors

this
this(R output)

Constructs the range for a given character output range.

Members

Functions

put
void put(JSONParserNode!String node)
void put(JSONToken!String token)
void put(typeof(null) )
void put(bool value)
void put(long value)
void put(BigInt value)
void put(double value)
void put(JSONString!String value)
void put(string value)

Writes a single JSON primitive to the destination character range.

Meta