Struct JSONOutputRange
Output range that takes JSON primitives and outputs to a character output range.
struct JSONOutputRange(R, GeneratorOptions options = GeneratorOptions .init)
if (isOutputRange!(R, char));
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
not set) is currently
only supported for primitives of type JSONParserNode
.
Constructors
Name | Description |
---|---|
this
|
Constructs the range for a given character output range. |
Methods
Name | Description |
---|---|
put
|
Writes a single JSON primitive to the destination character range. |