[#BloombergLP-baljsn-DatumUtil-decode-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/DatumUtil.adoc[DatumUtil]::decode :relfileprefix: ../../../ :mrdocs: Decode JSON from `jsonBuffer` into `result`, using the specified `options`. == Synopsis Declared in `<baljsn_datumutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int decode( xref:BloombergLP/bdld/ManagedDatum.adoc[bdld::ManagedDatum]* result, std::streambuf* jsonBuffer, xref:BloombergLP/baljsn/DatumDecoderOptions.adoc[DatumDecoderOptions] const& options); ---- == Description Same as the preceding overload, using the specified `options`. == Return Value 0 on success, and a negative value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *result* | receives the decoded `Datum` | *jsonBuffer* | stream buffer providing JSON text | *options* | decoding options |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#