|
JSON for Modern C++
3.0
|
|
inline |
Create an array JSON value with a given content.
| [in] | value | a value for the array |
| std::bad_alloc | if allocation for array value fails (thrown by the constructor of json_value) |
["one","two",3,4.5,false]The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/basic_json__array_t.cpp -o basic_json__array_t.