Decode json into result, writing errors to errorStream.

Synopsis

Declared in <baljsn_datumutil.h>

static
int
decode(
    bdld::ManagedDatum* result,
    std::ostream* errorStream,
    std::string_view const& json);

Description

Same as the preceding overload, writing errors to errorStream.

Return Value

0 on success, and a negative value otherwise

Parameters

Name

Description

result

receives the decoded Datum

errorStream

optional stream for parse‐error descriptions

json

JSON text to decode

Created with MrDocs