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

Same as the related overload above for `valueAsJson`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
int
valueAsJson(
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json]* json,
    TYPE const& value,
    xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options);
----

== Specializations

[cols="1"]
|===
| Name
| xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-025.adoc[`valueAsJson&lt;Date&gt;`] 
| xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-045.adoc[`valueAsJson&lt;DateTz&gt;`] 
| xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0bc8.adoc[`valueAsJson&lt;Datetime&gt;`] 
| xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0d.adoc[`valueAsJson&lt;DatetimeTz&gt;`] 
| xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0a.adoc[`valueAsJson&lt;Decimal&lowbar;Type64&gt;`] 
| xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-066.adoc[`valueAsJson&lt;Time&gt;`] 
| xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-02f.adoc[`valueAsJson&lt;TimeTz&gt;`] 
| xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-068.adoc[`valueAsJson&lt;double&gt;`] 
| xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-05.adoc[`valueAsJson&lt;float&gt;`] 
| xref:BloombergLP/baljsn/JsonFormatter_Util/valueAsJson-0bcb.adoc[`valueAsJson&lt;basic&lowbar;string&lt;char&gt;&gt;`] 
|===



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