|
JSON for Modern C++
3.0
|
|
inline |
Creates a copy of a given JSON value.
| [in] | other | the JSON value to copy |
other == basic_json(other).| std::bad_alloc | if allocation for object, array, or string fails. |
["one","two",3,4.5,false] = ["one","two",3,4.5,false] trueThe example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/basic_json__basic_json.cpp -o basic_json__basic_json.