getValue overloads

Synopses

Declared in <baljsn_jsonparserutil.h>

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

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

Load into the specified value a date or date‐with‐timezone from json.

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

Load into the specified value the date with timezone from json.

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

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

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

Load into the specified value a datetime or datetime‐with‐timezone from json.

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

Load into the specified value the datetime with timezone from json.

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

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

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

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

static
int
getValue(
    bsls::Types::Int64* value,
    bdljsn::Json const& json);

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

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

Load into the specified value a time or time‐with‐timezone from json.

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

Load into the specified value the time with timezone from json.

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

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

static
int
getValue(
    bsls::Types::Uint64* value,
    bdljsn::Json const& json);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

static
int
getValue(
    std::pmr::string* value,
    bdljsn::Json const& json);

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

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

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

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

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

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

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

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

Load into the specified value the Base64‐decoded bytes from data.

static
int
getValue(
    bsl::vector<char>* value,
    bdljsn::Json const& data);

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

value

receives the parsed date

json

JSON object supplying the value

data

JSON object supplying the Base64 string

Created with MrDocs