BloombergLP::baljsn::DatumUtil::decode

Decode JSON from jsonBuffer into result, using the specified options.

Synopsis

Declared in <baljsn_datumutil.h>

static
int
decode(
    bdld::ManagedDatum* result,
    std::streambuf* jsonBuffer,
    DatumDecoderOptions const& options);

Description

Same as the preceding overload, using the specified options.

Return Value

0 on success, and a negative value otherwise

Parameters

NameDescription
resultreceives the decoded Datum
jsonBufferstream buffer providing JSON text
optionsdecoding options