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.compact not set) is currently only supported for primitives of type JSONParserNode.

Constructors

NameDescription
this Constructs the range for a given character output range.

Methods

NameDescription
put Writes a single JSON primitive to the destination character range.