[#BloombergLP-baljsn-PrintUtil-printValue-08fe] = 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`. Return 0 on success and a non‐zero value otherwise. == Synopsis Declared in `<baljsn_printutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int printValue( std::ostream& stream, xref:BloombergLP/baljsn/PrintUtil/DatetimeOrDatetimeTz.adoc[DatetimeOrDatetimeTz] const& value, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#