[#BloombergLP-baljsn-Decoder-decodeAny-0da]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/Decoder.adoc[Decoder]::decodeAny
:relfileprefix: ../../../
:mrdocs:

Decode into the specified `value` without instantiating templates at compile time&period; Return 0 on success, and a non&hyphen;zero value otherwise&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
decodeAny(
    std::streambuf* streamBuf,
    xref:BloombergLP/bdlar/AnyRef.adoc[bdlar::AnyRef]* value,
    xref:BloombergLP/baljsn/DecoderOptions.adoc[DecoderOptions] const& options);
----

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *streamBuf*
| input buffer supplying JSON
| *value*
| type&hyphen;erased object to decode into
| *options*
| decoding options
|===


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