Merge pull request #1979 from alex-weej/patch-2
README: Fix string representation of `dump`ed `json`
This commit is contained in:
commit
d102da61ad
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue