|
JSON for Modern C++
3.0
|
|
friend |
Deserializes an input stream to a JSON value.
| [in,out] | i | input stream to read a serialized JSON value from |
| [in,out] | j | JSON value to write the deserialized input to |
| std::invalid_argument | in case of parse errors |
{
"array": [
1,
2,
3,
4,
5
],
"boolean": false,
"null": null,
"number": 23,
"string": "Hello, world!"
}
The example code above can be translated withg++ -std=c++11 -Isrc doc/examples/operator_deserialize.cpp -o operator_deserialize.