Decode JSON from streamBuf into value using default options.
Declared in <baljsn_decoder.h>
template<class TYPE>
int
decode(
std::streambuf* streamBuf,
TYPE* value);
Decode an object of (template parameter) TYPE from the specified streamBuf and load the result into the specified modifiable value. Return 0 on success, and a non-zero value otherwise.
DEPRECATED: Use the decode function passed a reference to a non-modifiable DecoderOptions object instead.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| streamBuf | input buffer supplying JSON |
| value | object to decode into |