BloombergLP::bdljsn::JsonUtil::read

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

Synopses

Declared in <bdljsn_jsonutil.h>

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

static
int
read(
    Json* result,
    std::istream& input);
» more...

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

static
int
read(
    Json* result,
    std::string_view const& input);
» more...

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

static
int
read(
    Json* result,
    std::streambuf* input);
» more...

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

static
int
read(
    Json* result,
    std::istream& input,
    ReadOptions const& options);
» more...

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

static
int
read(
    Json* result,
    std::string_view const& input,
    ReadOptions const& options);
» more...

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

static
int
read(
    Json* result,
    Error* errorDescription,
    std::istream& input);
» more...

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

static
int
read(
    Json* result,
    Error* errorDescription,
    std::string_view const& input);
» more...

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

static
int
read(
    Json* result,
    Error* errorDescription,
    std::streambuf* input);
» more...

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

static
int
read(
    Json* result,
    std::streambuf* input,
    ReadOptions const& options);
» more...

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

static
int
read(
    Json* result,
    Error* errorDescription,
    std::istream& input,
    ReadOptions const& options);
» more...

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

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

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

static
int
read(
    Json* result,
    Error* errorDescription,
    std::streambuf* input,
    ReadOptions const& options);
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

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