Function toJson

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

The basic version will not output any whitespace and thus minizime the size of the string.

toPrettyJSON() in the other hand will add newlines and indents to make the output human readable.

Prototypes

void toJson(R)(ref R dst, in Json json)(
  ref R dst,
  in Json json
);

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

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.