valueAsJson overloads
Declared in <baljsn_jsonformatter.h>
Load the JSON representation of the Date value into json.
template<>
int
valueAsJson<Date>(
bdljsn::Json* json,
bdlt::Date const& value,
EncoderOptions const* options);
» more...
Load the JSON representation of the DateTz value into json.
template<>
int
valueAsJson<DateTz>(
bdljsn::Json* json,
bdlt::DateTz const& value,
EncoderOptions const* options);
» more...
Load the JSON representation of the Datetime value into json.
template<>
int
valueAsJson<Datetime>(
bdljsn::Json* json,
bdlt::Datetime const& value,
EncoderOptions const* options);
» more...
Load the JSON representation of the DatetimeTz value into json.
template<>
int
valueAsJson<DatetimeTz>(
bdljsn::Json* json,
bdlt::DatetimeTz const& value,
EncoderOptions const* options);
» more...
Load the JSON representation of the Decimal64 value into json.
template<>
int
valueAsJson<Decimal_Type64>(
bdljsn::Json* json,
bdldfp::Decimal64 const& value,
EncoderOptions const* options);
» more...
Load the JSON representation of the Time value into json.
template<>
int
valueAsJson<Time>(
bdljsn::Json* json,
bdlt::Time const& value,
EncoderOptions const* options);
» more...
Load the JSON representation of the TimeTz value into json.
template<>
int
valueAsJson<TimeTz>(
bdljsn::Json* json,
bdlt::TimeTz const& value,
EncoderOptions const* options);
» more...
Load the JSON representation of the double value into json.
template<>
int
valueAsJson<double>(
bdljsn::Json* json,
double const& value,
EncoderOptions const* options);
» more...
Load the JSON representation of the float value into json.
template<>
int
valueAsJson<float>(
bdljsn::Json* json,
float const& value,
EncoderOptions const* options);
» more...
Load the JSON representation of the bsl::string value into json.
template<>
int
valueAsJson<basic_string<char>>(
bdljsn::Json* json,
bsl::string const& value,
EncoderOptions const* options);
» more...
0 on success and a non-zero value otherwise
| Name | Description |
|---|---|
| json | JSON object to receive the encoded value |
| value | date value to encode |
| options | optional encoding options; null uses defaults |