[#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`&period;

== Synopsis

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

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

== Description

Optionally specify `options` according which `value` should be encoded&period; Return 0 on success and a non&hyphen;zero value otherwise&period;

== Return Value

0 on success and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| value to encode as JSON
| *options*
| optional encoding options&semi; null uses defaults
|===


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