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

Synopsis

Declared in <bdljsn_jsonutil.h>

static
int
read(
    Json* result,
    Error* errorDescription,
    std::istream& 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

Name

Description

result

object to receive the parsed JSON

errorDescription

receives a description if parsing fails

input

stream supplying JSON text

options

options controlling JSON parsing

Created with MrDocs