decode overloads
Synopses
Declared in <baljsn_datumutil.h>
Decode the specified json into the specified result.
static
int
decode(
bdld::ManagedDatum* result,
std::string_view const& json);
Decode JSON from the specified jsonBuffer into the specified result.
static
int
decode(
bdld::ManagedDatum* result,
std::streambuf* jsonBuffer);
Decode json into result, using the specified options.
static
int
decode(
bdld::ManagedDatum* result,
std::string_view const& json,
DatumDecoderOptions const& options);
Decode json into result, writing errors to errorStream.
static
int
decode(
bdld::ManagedDatum* result,
std::ostream* errorStream,
std::string_view const& json);
Decode JSON from jsonBuffer into result, writing errors to errorStream.
static
int
decode(
bdld::ManagedDatum* result,
std::ostream* errorStream,
std::streambuf* jsonBuffer);
Decode JSON from jsonBuffer into result, using the specified options.
static
int
decode(
bdld::ManagedDatum* result,
std::streambuf* jsonBuffer,
DatumDecoderOptions const& options);
Decode json into result, writing errors to errorStream, using options.
static
int
decode(
bdld::ManagedDatum* result,
std::ostream* errorStream,
std::string_view const& json,
DatumDecoderOptions const& options);
Decode JSON from jsonBuffer into result, writing errors to errorStream, using options.
static
int
decode(
bdld::ManagedDatum* result,
std::ostream* errorStream,
std::streambuf* jsonBuffer,
DatumDecoderOptions const& options);
Return Value
0 on success, and a negative value otherwise
Parameters
Name |
Description |
result |
receives the decoded |
json |
JSON text to decode |
jsonBuffer |
stream buffer providing JSON text |
options |
decoding options |
errorStream |
optional stream for parse‐error descriptions |
Created with MrDocs