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

Name

Description

streamBuf

input buffer supplying JSON

value

type‐erased object to decode into

options

decoding options

Created with MrDocs