mirror of
https://github.com/nlohmann/json.git
synced 2026-07-16 23:44:54 +00:00
minor changes
This commit is contained in:
@@ -115,7 +115,11 @@ You can create an object (deserialization) by appending `_json` to a string lite
|
||||
json j = "{ \"pi\": 3.141, \"happy\": true }"_json;
|
||||
|
||||
// or even nicer (thanks http://isocpp.org/blog/2015/01/json-for-modern-cpp)
|
||||
auto j2 = R"( {"pi": 3.141, "happy": true} )"_json;
|
||||
auto j2 = R"(
|
||||
{
|
||||
"pi": 3.141,
|
||||
"happy": true
|
||||
})"_json;
|
||||
```
|
||||
|
||||
You can also get a string representation (serialize):
|
||||
|
||||
Reference in New Issue
Block a user