added note from http://isocpp.org/blog/2015/01/json-for-modern-cpp
This commit is contained in:
1 parent
f0582a8b60
commit
4f0afbbe64
2 files changed
+7
No files matched your search
@@ -110,6 +110,9 @@ You can create an object (deserialization) by appending `_json` to a string lite
|
||||
```cpp
|
||||
// create object from string literal
|
||||
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;
|
||||
```
|
||||
|
||||
You can also get a string representation (serialize):
|
||||
|
||||
Reference in new issue
Block a user