vibe.d beta banner
get vibe.d
0.8.1

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

Template writeJsonString

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

template writeJsonString(R, bool pretty = false) ;

This function will convert the given JSON value to a string without adding any white space between tokens (no newlines, no indentation and no padding). The output size is thus minimized, at the cost of bad human readability.

Contained Functions

NameDescription
writeJsonStringWrites the given JSON object as a JSON string into the destination range.

Parameters

NameDescription
dst References the string output range to which the result is written.
json Specifies the JSON value that is to be stringified.

See Also

Json.toString, writePrettyJsonString

Authors

Sönke Ludwig

Copyright

© 2012-2013 RejectedSoftware e.K.

License

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