Unverified Commit 5fdb1d08 authored by Alexander “weej” Jones's avatar Alexander “weej” Jones Committed by GitHub

README: Fix string representation of `dump`ed `json`

As is it's confusing and inconsistent with the indented form right below. The backslash escapes make it confusing.
parent 973c52dd
...@@ -311,7 +311,7 @@ You can also get a string representation of a JSON value (serialize): ...@@ -311,7 +311,7 @@ You can also get a string representation of a JSON value (serialize):
```cpp ```cpp
// explicit conversion to string // 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 // serialization with pretty printing
// pass in the amount of spaces to indent // 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