funkwerk.stdx.data.json.generator

Contains routines for converting JSON values to their string represencation.

Synopsis:

...

Members

Enums

GeneratorOptions
enum GeneratorOptions

Flags for configuring the JSON generator.

Functions

escapeString
void escapeString(R dst, string s)
Undocumented in source. Be warned that the author may not have intended to support it.
jsonOutputRange
JSONOutputRange!(R, options) jsonOutputRange(R output)

Convenience function for creating a JSONOutputRange instance using IFTI.

toJSON
string toJSON(JSONValue value)
string toJSON(Input nodes)
string toJSON(Input tokens)
string toJSON(JSONToken!String token)

Converts the given JSON document(s) to its string representation.

writeJSON
void writeJSON(JSONValue value, Output output)
void writeJSON(Input nodes, Output output)
void writeJSON(Input tokens, Output output)
void writeJSON(JSONToken!String token, Output output)

Writes the string representation of the given JSON document(s)/tokens to an output range.

Structs

JSONOutputRange
struct JSONOutputRange(R, GeneratorOptions options = GeneratorOptions.init)

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

Meta

Authors

Sönke Ludwig