BloombergLP::baljsn::JsonParserUtil::getValue

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

Synopsis

Declared in <baljsn_jsonparserutil.h>

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

Description

Return 0 on success or a non-zero value on failure. The behavior is undefined unless json.isNumber() or json.isString() if the value is INF, -INF, or NaN.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
valuereceives the parsed Decimal64
jsonJSON object supplying the value