[#BloombergLP-baljsn-JsonParserUtil-getValue-005]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/JsonParserUtil.adoc[JsonParserUtil]::getValue
:relfileprefix: ../../../
:mrdocs:

`getValue` overloads

== Synopses

Declared in `&lt;baljsn&lowbar;jsonparserutil&period;h&gt;`

Load into the specified `value` the date from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-0a6.adoc[getValue](
    xref:BloombergLP/bdlt/Date.adoc[bdlt::Date]* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-0a6.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` a date or date&hyphen;with&hyphen;timezone from `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-07.adoc[getValue](
    xref:BloombergLP/baljsn/ParserUtil/DateOrDateTz.adoc[ParserUtil::DateOrDateTz]* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-07.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the date with timezone from `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-09b.adoc[getValue](
    xref:BloombergLP/bdlt/DateTz.adoc[bdlt::DateTz]* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-09b.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the datetime from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-01.adoc[getValue](
    xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime]* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-01.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` a datetime or datetime&hyphen;with&hyphen;timezone from `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-088.adoc[getValue](
    xref:BloombergLP/baljsn/ParserUtil/DatetimeOrDatetimeTz.adoc[ParserUtil::DatetimeOrDatetimeTz]* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-088.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the datetime with timezone from `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-0bb.adoc[getValue](
    xref:BloombergLP/bdlt/DatetimeTz.adoc[bdlt::DatetimeTz]* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-0bb.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the number from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-0ee.adoc[getValue](
    xref:BloombergLP/bdldfp/Decimal64.adoc[bdldfp::Decimal64]* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-0ee.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the number from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-0b3.adoc[getValue](
    xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64]* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-0b3.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the time from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-009.adoc[getValue](
    xref:BloombergLP/bdlt/Time.adoc[bdlt::Time]* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-009.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` a time or time&hyphen;with&hyphen;timezone from `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-03.adoc[getValue](
    xref:BloombergLP/baljsn/ParserUtil/TimeOrTimeTz.adoc[ParserUtil::TimeOrTimeTz]* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-03.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the time with timezone from `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-02b.adoc[getValue](
    xref:BloombergLP/bdlt/TimeTz.adoc[bdlt::TimeTz]* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-02b.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the number from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-053.adoc[getValue](
    xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64]* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-053.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the boolean from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-00c.adoc[getValue](
    bool* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-00c.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the number from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-08a.adoc[getValue](
    char* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-08a.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the number from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-0ba.adoc[getValue](
    double* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-0ba.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the number from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-05d.adoc[getValue](
    float* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-05d.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the number from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-0a2.adoc[getValue](
    int* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-0a2.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the number from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-094.adoc[getValue](
    short* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-094.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the number from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-0b8.adoc[getValue](
    signed char* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-0b8.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the string from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-02e.adoc[getValue](
    xref:bsl/string.adoc[bsl::string]* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-02e.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the string from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-0d.adoc[getValue](
    std::pmr::string* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-0d.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the string from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-029.adoc[getValue](
    std::string* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-029.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the number from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-04c.adoc[getValue](
    unsigned char* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-04c.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the number from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-06.adoc[getValue](
    unsigned int* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-06.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the number from the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-0ed.adoc[getValue](
    unsigned short* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& json);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-0ed.adoc[_» more&period;&period;&period;_]#

Load into the specified `value` the Base64&hyphen;decoded bytes from `data`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/JsonParserUtil/getValue-04e.adoc[getValue](
    xref:bsl/vector-00d.adoc[bsl::vector&lt;char&gt;]* value,
    xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const& data);
----

[.small]#xref:BloombergLP/baljsn/JsonParserUtil/getValue-04e.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| receives the parsed date
| *json*
| JSON object supplying the value
| *data*
| JSON object supplying the Base64 string
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
