Skip to content

Commit

Permalink
README: Fix string representation of dumped json
Browse files Browse the repository at this point in the history
As is it's confusing and inconsistent with the indented form right below. The backslash escapes make it confusing.
  • Loading branch information
alexweej authored Mar 10, 2020
1 parent 973c52d commit 5fdb1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5fdb1d0

Please sign in to comment.