[#BloombergLP-baljsn-JsonFormatter_Util-valueAsJson-04f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/JsonFormatter_Util.adoc[JsonFormatter&lowbar;Util]::valueAsJson
:relfileprefix: ../../../
:mrdocs:

== Synopses

Declared in `&lt;baljsn&lowbar;jsonformatter&period;h&gt;`


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
int
xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-025.adoc[valueAsJson&lt;Date&gt;](
    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&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
int
xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-045.adoc[valueAsJson&lt;DateTz&gt;](
    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&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
int
xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0bc8.adoc[valueAsJson&lt;Datetime&gt;](
    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&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
int
xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0d.adoc[valueAsJson&lt;DatetimeTz&gt;](
    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&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
int
xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0a.adoc[valueAsJson&lt;Decimal&lowbar;Type64&gt;](
    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&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
int
xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-066.adoc[valueAsJson&lt;Time&gt;](
    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&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
int
xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-02f.adoc[valueAsJson&lt;TimeTz&gt;](
    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&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
int
xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-068.adoc[valueAsJson&lt;double&gt;](
    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&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
int
xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-05.adoc[valueAsJson&lt;float&gt;](
    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&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
int
xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0bcb.adoc[valueAsJson&lt;basic&lowbar;string&lt;char&gt;&gt;](
    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&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
