[#BloombergLP-baljsn-PrintUtil-printValue-0bd] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/PrintUtil.adoc[PrintUtil]::printValue :relfileprefix: ../../../ :mrdocs: Encode `value` into JSON and write it to `stream`. == Synopsis Declared in `<baljsn_printutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int printValue( std::ostream& stream, xref:BloombergLP/baljsn/PrintUtil/TimeOrTimeTz.adoc[TimeOrTimeTz] const& value, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options = 0); ---- == Description 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. == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *stream* | output stream for JSON | *value* | value to encode | *options* | encoding options; null uses defaults |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#