Decode JSON from jsonBuffer into result, writing errors to errorStream.
Declared in <baljsn_datumutil.h>
static
int
decode(
bdld::ManagedDatum* result,
std::ostream* errorStream,
std::streambuf* jsonBuffer);
Same as the preceding overload, writing errors to errorStream.
0 on success, and a negative value otherwise
| Name | Description |
|---|---|
| result | receives the decoded Datum |
| errorStream | optional stream for parse-error descriptions |
| jsonBuffer | stream buffer providing JSON text |