more descriptive documentation in example

I wasn't sure what that parameter was at first glance
This commit is contained in:
Trevor Hickey 2015-01-25 21:00:28 -05:00
parent b453cdb7a2
commit 20d75a26a5

View file

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