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)
  3. void writeJSON(Input tokens, Output output)
    void
    writeJSON
    (
    Output
    Input
    )
    (
    Input tokens
    ,
    ref Output output
    )
    if (
    isOutputRange!(Output, char) &&
    )
  4. void writeJSON(JSONToken!String token, Output output)

Parameters

output Output

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

tokens Input

List of JSON tokens to be converted to strings. The tokens may occur in any order and are simply appended in order to the final string.

See Also

toJSON, writePrettyJSON

Meta