Encode the specified any without instantiating templates at compile time. Return 0 on success, and a non‐zero value otherwise.

Synopsis

Declared in <baljsn_encoder.h>

int
encodeAny(
    std::ostream& stream,
    bdlar::AnyConstRef const& any,
    EncoderOptions const& options);

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

stream

output stream for JSON

any

type‐erased value to encode

options

encoding options

Created with MrDocs