Unverified Commit d102da61 authored by Niels Lohmann's avatar Niels Lohmann Committed by GitHub

Merge pull request #1979 from alex-weej/patch-2

README: Fix string representation of `dump`ed `json`
parents 973c52dd 5fdb1d08
......@@ -311,7 +311,7 @@ You can also get a string representation of a JSON value (serialize):
```cpp
// explicit conversion to string
std::string s = j.dump(); // {\"happy\":true,\"pi\":3.141}
std::string s = j.dump(); // {"happy":true,"pi":3.141}
// serialization with pretty printing
// pass in the amount of spaces to indent
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment