diff --git a/README.md b/README.md index fec2466cf..ce996c6a2 100644 --- a/README.md +++ b/README.md @@ -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,