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)
  2. void writeJSON(Input nodes, Output output)
    void
    writeJSON
    (
    Output
    Input
    )
    (
    Input nodes
    ,
    ref Output output
    )
    if (
    isOutputRange!(Output, char) &&
    )
  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.

nodes Input

A set of JSON documents encoded as single parser nodes. The nodes must be in valid document order, or the parser result will be undefined.

See Also

toJSON, writePrettyJSON

Meta