BloombergLP::bdljsn::JsonUtil::read

Load a value-semantic representation of JSON text into result.

Synopsis

Declared in <bdljsn_jsonutil.h>

static
int
read(
    Json* result,
    Error* errorDescription,
    std::string_view const& input,
    ReadOptions const& options);

Description

Return 0 on success and a non-zero value otherwise. See the first read overload for full contract details.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
resultobject to receive the parsed JSON
errorDescriptionreceives a description if parsing fails
inputstring view supplying JSON text
optionsoptions controlling JSON parsing