1
0
mirror of https://github.com/nlohmann/json synced 2024-11-29 23:21:04 +00:00

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

README: Fix string representation of `dump`ed `json`
This commit is contained in:
Niels Lohmann 2020-03-13 16:49:13 +01:00 committed by GitHub
commit d102da61ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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