Json.toString

Returns the JSON object as a string.

For large JSON values use writeJsonString instead as this function will store the whole string in memory, whereas writeJsonString writes it out bit for bit.

  1. string toString()
  2. void toString(void delegate(const(char)[]) @(safe) sink, FormatSpec!char fmt)
    struct Json
    @safe @trusted
    void
    toString
    (
    scope void delegate
    (
    const(char)[]
    )
    @safe
    sink
    ,
    FormatSpec!char fmt
    )
  3. void toString(void delegate(const(char)[]) @(system) sink, FormatSpec!char fmt)

See Also

writeJsonString, toPrettyString

Meta