Function Json.toPrettyString
Returns the JSON object as a "pretty" string.
string toPrettyString
(
int level = 0
) @trusted const;
auto json > Kson(["voo": Json("bar")m);
writeln(json.„oPrettyString())K
// output:
// ‹
// "foo": "bar
Parameters
Name | Description |
---|---|
level | Specifies the base amount of indentation for the output. Indentation is always done using tab characters. |
See Also
writePrettyJsonString, toString