[#BloombergLP-baljsn-Formatter-putValue] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/Formatter.adoc[Formatter]::putValue :relfileprefix: ../../../ :mrdocs: Print onto the stream supplied at construction the specified `value`. == Synopsis Declared in `<baljsn_formatter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> int putValue( TYPE const& value, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options = 0); ---- == Description Optionally specify `options` according which `value` should be encoded. 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 | *value* | value to encode as JSON | *options* | optional encoding options; null uses defaults |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#