BloombergLP::baljsn::DatumUtil::decode

Decode json into result, using the specified options.

Synopsis

Declared in <baljsn_datumutil.h>

static
int
decode(
    bdld::ManagedDatum* result,
    std::string_view const& json,
    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
jsonJSON text to decode
optionsdecoding options