Load into the specified value the boolean from the specified json.

Synopsis

Declared in <baljsn_jsonparserutil.h>

static
int
getValue(
    bool* value,
    bdljsn::Json const& json);

Description

Return 0 on success or a non‐zero value on failure. The behavior is undefined unless json.isBoolean().

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

value

receives the parsed boolean

json

JSON object supplying the value

Created with MrDocs