BloombergLP::baljsn::Encoder::encodeAny

Same as the preceding overload, accepting a nullable options pointer.

Synopsis

Declared in <baljsn_encoder.h>

template<class TYPE>
int
encodeAny(
    std::streambuf* streamBuf,
    TYPE const& value,
    EncoderOptions const* options = 0);

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
streamBufoutput buffer for JSON
valuevalue to encode
optionsencoding options; null uses defaults