[#BloombergLP-baljsn-ParserUtil]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::ParserUtil
:relfileprefix: ../../
:mrdocs:

This class provides utility functions for decoding JSON data into a `bdlat` Simple type&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct ParserUtil;
----

== Description

The primary method is `getValue`, which decodes into a specified object and is overloaded for all `bdlat` Simple types&period;

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/baljsn/ParserUtil/DateOrDateTz.adoc[`DateOrDateTz`] 
| `DateOrDateTz` is a convenient alias for `bdlb&colon;&colon;Variant2&lt;Date, DateTz&gt;`&period;
| xref:BloombergLP/baljsn/ParserUtil/DatetimeOrDatetimeTz.adoc[`DatetimeOrDatetimeTz`] 
| `DatetimeOrDatetimeTz` is a convenient alias for `bdlb&colon;&colon;Variant2&lt;Datetime, DatetimeTz&gt;`&period;
| xref:BloombergLP/baljsn/ParserUtil/TimeOrTimeTz.adoc[`TimeOrTimeTz`] 
| `TimeOrTimeTz` is a convenient alias for `bdlb&colon;&colon;Variant2&lt;Time, TimeTz&gt;`&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/baljsn/ParserUtil/getQuotedString-0f.adoc[`getQuotedString`] 
| Load a quoted JSON string into `value`&period;
| xref:BloombergLP/baljsn/ParserUtil/getUnquotedString-03.adoc[`getUnquotedString`] 
| Load an unquoted string from JSON `data` into `value`&period;
| xref:BloombergLP/baljsn/ParserUtil/getValue-08c.adoc[`getValue`] 
| `getValue` overloads
| xref:BloombergLP/baljsn/ParserUtil/stripQuotes.adoc[`stripQuotes`] 
| Remove surrounding quotation marks from `&ast;str` if present&period;
|===



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