BloombergLP::baljsn::Decoder::decodeAny

Decode into the specified value without instantiating templates at compile time. Return 0 on success, and a non-zero value otherwise.

Synopsis

Declared in <baljsn_decoder.h>

int
decodeAny(
    std::streambuf* streamBuf,
    bdlar::AnyRef* value,
    DecoderOptions const& options);

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
streamBufinput buffer supplying JSON
valuetype-erased object to decode into
optionsdecoding options