Same as the preceding overload, accepting a nullable options pointer.
Declared in <baljsn_encoder.h>
template<class TYPE>
int
encode(
std::ostream& stream,
TYPE const& value,
EncoderOptions const* options);
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| stream | output stream for JSON |
| value | value to encode |
| options | encoding options; null uses defaults |