|
JSON for Modern C++
3.0
|
|
inline |
Create an object JSON value with a given content.
| value | a value for the object |
| std::bad_alloc | if allocation for object value fails (thrown by the constructor of json_value) |
{"one":1,"two":2}
The example code above can be translated withg++ -std=c++11 -Isrc doc/examples/basic_json__object_t.cpp -o basic_json__object_t.