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

Parameters

output Output

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

token JSONToken!String

A single token to convert to a string

See Also

toJSON, writePrettyJSON

Meta