Encode the JSON representation of the specified value to the specified jsonStream. Optionally specify options to configure aspects of the JSON representation of the value. If options is not specified, the default EncoderOptions value is used. Return 0 on success, and a non‐zero value otherwise. The behavior is undefined unless the specified TYPE satisfies both the static and dynamic requirements of one bdlat type‐category concept. See baljsn_encoderoptions for a description of the effects, if any, of each option in the options on the JSON representation of the value. See the package‐level documentation of bdlat for a description of the available type‐category concepts.
Synopsis
Declared in <baljsn_encodeimplutil.h>
template<class TYPE>
static
int
encode(
std::ostream* jsonStream,
TYPE const& value,
EncoderOptions const& options = EncoderOptions());
Created with MrDocs