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