Method Json.toPrettyString
Returns the JSON object as a "pretty" string.
auto json = Json(["foo": Json("bar")]); writeln(json.toPrettyString()); // output: // { // "foo": "bar" // }
Prototype
const(string) toPrettyString( int level );
Parameters
Name | Description |
---|---|
level | Specifies the base amount of indentation for the output. Indentation is always done using tab characters. |
See Also
Authors
Sönke Ludwig
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.