[#BloombergLP-baljsn-PrintUtil-printValue-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/PrintUtil.adoc[PrintUtil]::printValue
:relfileprefix: ../../../
:mrdocs:

Encode the specified `value` into JSON format and output the result to the specified `stream` using the optionally specified `options`&period; Return 0 on success and a non&hyphen;zero value otherwise&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
printValue(
    std::ostream& stream,
    xref:BloombergLP/bdlt/DatetimeTz.adoc[bdlt::DatetimeTz] const& value,
    xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options = 0);
----


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