[#BloombergLP-baljsn-SimpleFormatter-addValue-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/SimpleFormatter.adoc[SimpleFormatter]::addValue :relfileprefix: ../../../ :mrdocs: Print the specified `value` onto the stream. == Synopsis Declared in `<baljsn_simpleformatter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> int addValue(TYPE const& value); ---- == Description Print onto the stream supplied at construction the specified `value`, preceded, if necessary, by a comma, passing the optionally specified `options` through to the rendering routines. Return 0 on success and a non‐zero value otherwise. The behavior is undefined unless `isNameNeeded()` is `false`. == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *value* | value to encode as JSON |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#