convert overloads

Synopses

Declared in <baljsn_jsonconverter.h>

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.

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

Load to the specified value of (template parameter) TYPE the value of the specified json 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 value is reset.

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

Created with MrDocs