vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Function writePrettyJsonString

Writes the given JSON object as a prettified JSON string into the destination range.

void writePrettyJsonString(R) (
  ref R dst,
  in Json json,
  int level = 0

The output will contain newlines and indents to make the output human readable.


dst References the string output range to which the result is written.
json Specifies the JSON value that is to be stringified.
level Specifies the base amount of indentation for the output. Indentation is always done using tab characters.

See Also

Json.toPrettyString, writeJsonString


Sönke Ludwig


© 2012-2015 Sönke Ludwig


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.