[#BloombergLP-baljsn-Decoder-decodeAny-038] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/Decoder.adoc[Decoder]::decodeAny :relfileprefix: ../../../ :mrdocs: `decodeAny` overloads == Synopses Declared in `<baljsn_decoder.h>` Decode into the specified `value` without instantiating templates at compile time. Return 0 on success, and a non‐zero value otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/baljsn/Decoder/decodeAny-0d9.adoc[decodeAny]( std::istream& stream, xref:BloombergLP/bdlar/AnyRef.adoc[bdlar::AnyRef]* value, xref:BloombergLP/baljsn/DecoderOptions.adoc[DecoderOptions] const& options); ---- [.small]#xref:BloombergLP/baljsn/Decoder/decodeAny-0d9.adoc[_» more..._]# Decode into the specified `value` without instantiating templates at compile time. Return 0 on success, and a non‐zero value otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/baljsn/Decoder/decodeAny-0da.adoc[decodeAny]( std::streambuf* streamBuf, xref:BloombergLP/bdlar/AnyRef.adoc[bdlar::AnyRef]* value, xref:BloombergLP/baljsn/DecoderOptions.adoc[DecoderOptions] const& options); ---- [.small]#xref:BloombergLP/baljsn/Decoder/decodeAny-0da.adoc[_» more..._]# Decode JSON from `stream` into `value` using `options` without instantiating templates at compile time. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> int xref:BloombergLP/baljsn/Decoder/decodeAny-0b.adoc[decodeAny]( std::istream& stream, TYPE* value, xref:BloombergLP/baljsn/DecoderOptions.adoc[DecoderOptions] const& options); ---- [.small]#xref:BloombergLP/baljsn/Decoder/decodeAny-0b.adoc[_» more..._]# Same as the preceding overload, accepting a nullable `options` pointer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> int xref:BloombergLP/baljsn/Decoder/decodeAny-08.adoc[decodeAny]( std::istream& stream, TYPE* value, xref:BloombergLP/baljsn/DecoderOptions.adoc[DecoderOptions] const* options = 0); ---- [.small]#xref:BloombergLP/baljsn/Decoder/decodeAny-08.adoc[_» more..._]# Decode JSON from `streamBuf` into `value` using `options` without instantiating templates at compile time. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> int xref:BloombergLP/baljsn/Decoder/decodeAny-02.adoc[decodeAny]( std::streambuf* streamBuf, TYPE* value, xref:BloombergLP/baljsn/DecoderOptions.adoc[DecoderOptions] const& options); ---- [.small]#xref:BloombergLP/baljsn/Decoder/decodeAny-02.adoc[_» more..._]# Same as the preceding overload, accepting a nullable `options` pointer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> int xref:BloombergLP/baljsn/Decoder/decodeAny-03c.adoc[decodeAny]( std::streambuf* streamBuf, TYPE* value, xref:BloombergLP/baljsn/DecoderOptions.adoc[DecoderOptions] const* options = 0); ---- [.small]#xref:BloombergLP/baljsn/Decoder/decodeAny-03c.adoc[_» more..._]# == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *stream* | input stream supplying JSON | *value* | type‐erased object to decode into | *options* | decoding options | *streamBuf* | input buffer supplying JSON |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#