writeJSON

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

See toJSON for more information.

  1. void writeJSON(JSONValue value, Output output)
    void
    writeJSON
    (,
    ref Output output
    )
    if (
    isOutputRange!(Output, char)
    )
  2. void writeJSON(Input nodes, Output output)
  3. void writeJSON(Input tokens, Output output)
  4. void writeJSON(JSONToken token, Output output)

Parameters

output Output

The output range to take the result string in UTF-8 encoding.

value JSONValue

A single JSON document

See Also

toJSON, writePrettyJSON

Meta