Same as the preceding overload, accepting a nullable options pointer.
Declared in <baljsn_encoder.h>
int
encodeAny(
std::streambuf* streamBuf,
bdlar::AnyConstRef const& any,
EncoderOptions const* options = 0);
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| streamBuf | output buffer for JSON |
| any | type-erased value to encode |
| options | encoding options; null uses defaults |