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

Synopsis

Declared in <bdljsn_jsonutil.h>

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

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

input

stream buffer supplying JSON text

Created with MrDocs