Load a value-semantic representation of JSON text into result.
Declared in <bdljsn_jsonutil.h>
static
int
read(
Json* result,
Error* errorDescription,
std::streambuf* input,
ReadOptions const& options);
Return 0 on success and a non-zero value otherwise. See the first read overload for full contract details.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| result | object to receive the parsed JSON |
| errorDescription | receives a description if parsing fails |
| input | stream buffer supplying JSON text |
| options | options controlling JSON parsing |