1
0
mirror of https://github.com/nlohmann/json synced 2024-11-23 20:40:08 +00:00

Merge pull request #33 from luxe/patch-1

more descriptive documentation in example
This commit is contained in:
Niels 2015-01-26 07:51:40 +01:00
commit c4d74856bb

View File

@ -147,6 +147,7 @@ You can also get a string representation (serialize):
std::string s = j.dump(); // {\"happy\":true,\"pi\":3.141}
// serialization with pretty printing
// pass in the amount of spaces to indent
std::cout << j.dump(4) << std::endl;
// {
// "happy": true,