BloombergLP::baljsn::JsonConverter::convert

Load into the specified json the specified value of (template parameter) TYPE using the specified options. Return 0 on success, and a non-zero value otherwise. An error is returned if TYPE is not a top-level Sequence, Choice, or Array. The prior value of json is reset.

Synopsis

Declared in <baljsn_jsonconverter.h>

template<class TYPE>
int
convert(
    bdljsn::Json* json,
    TYPE const& value,
    ConvertToJsonOptions const& options = ConvertToJsonOptions());