Encode datum as JSON onto stream, using the specified options.
Synopsis
Declared in <baljsn_datumutil.h>
static
int
encode(
std::ostream& stream,
bdld::Datum const& datum,
DatumEncoderOptions const& options);
Description
Same as the preceding overload, using the specified options.
Return Value
0 on success, a negative value on failure, or a positive value if strictTypes is enabled and an unsupported type is encoded
Parameters
Name |
Description |
stream |
output stream for the encoded JSON |
datum |
|
options |
encoding options |
Created with MrDocs