toTextString

Takes a tree of JSON values and returns the serialized string.

Any Object types will be serialized in a key-sorted order.

If pretty is false no whitespaces are generated. If pretty is true serialized string is formatted to be human-readable. Set the JSONOptions.specialFloatLiterals flag is set in options to encode NaN/Infinity as strings.

@safe
string
toTextString
(
const ref JSONValue root
,
in bool pretty = false
,
in JSONOptions options = JSONOptions.none
)

Meta