[#BloombergLP-baljsn-JsonFormatter_Util-valueAsJson-04f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/JsonFormatter_Util.adoc[JsonFormatter_Util]::valueAsJson :relfileprefix: ../../../ :mrdocs: `valueAsJson` overloads == Synopses Declared in `<baljsn_jsonformatter.h>` Load the JSON representation of the `Date` `value` into `json`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> int xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-025.adoc[valueAsJson<Date>]( xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json]* json, xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] const& value, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options); ---- [.small]#xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-025.adoc[_» more..._]# Load the JSON representation of the `DateTz` `value` into `json`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> int xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-045.adoc[valueAsJson<DateTz>]( xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json]* json, xref:BloombergLP/bdlt/DateTz.adoc[bdlt::DateTz] const& value, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options); ---- [.small]#xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-045.adoc[_» more..._]# Load the JSON representation of the `Datetime` `value` into `json`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> int xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0bc8.adoc[valueAsJson<Datetime>]( xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json]* json, xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& value, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options); ---- [.small]#xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0bc8.adoc[_» more..._]# Load the JSON representation of the `DatetimeTz` `value` into `json`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> int xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0d.adoc[valueAsJson<DatetimeTz>]( xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json]* json, xref:BloombergLP/bdlt/DatetimeTz.adoc[bdlt::DatetimeTz] const& value, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options); ---- [.small]#xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0d.adoc[_» more..._]# Load the JSON representation of the `Decimal64` `value` into `json`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> int xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0a.adoc[valueAsJson<Decimal_Type64>]( xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json]* json, xref:BloombergLP/bdldfp/Decimal64.adoc[bdldfp::Decimal64] const& value, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options); ---- [.small]#xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0a.adoc[_» more..._]# Load the JSON representation of the `Time` `value` into `json`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> int xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-066.adoc[valueAsJson<Time>]( xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json]* json, xref:BloombergLP/bdlt/Time.adoc[bdlt::Time] const& value, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options); ---- [.small]#xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-066.adoc[_» more..._]# Load the JSON representation of the `TimeTz` `value` into `json`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> int xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-02f.adoc[valueAsJson<TimeTz>]( xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json]* json, xref:BloombergLP/bdlt/TimeTz.adoc[bdlt::TimeTz] const& value, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options); ---- [.small]#xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-02f.adoc[_» more..._]# Load the JSON representation of the `double` `value` into `json`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> int xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-068.adoc[valueAsJson<double>]( xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json]* json, double const& value, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options); ---- [.small]#xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-068.adoc[_» more..._]# Load the JSON representation of the `float` `value` into `json`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> int xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-05.adoc[valueAsJson<float>]( xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json]* json, float const& value, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options); ---- [.small]#xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-05.adoc[_» more..._]# Load the JSON representation of the `bsl::string` `value` into `json`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> int xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0bcb.adoc[valueAsJson<basic_string<char>>]( xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json]* json, xref:bsl/string.adoc[bsl::string] const& value, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options); ---- [.small]#xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0bcb.adoc[_» more..._]# == Return Value 0 on success and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *json* | JSON object to receive the encoded value | *value* | date value to encode | *options* | optional encoding options; null uses defaults |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#