|
JSON for Modern C++
3.0
|
|
inline |
Create an string JSON value with a given content.
| [in] | value | a value for the string |
| std::bad_alloc | if allocation for string value fails (thrown by the constructor of json_value) |
"The quick brown fox jumps over the lazy doc"The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/basic_json__string_t.cpp -o basic_json__string_t.