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

This class provides utility functions for decoding data in the JSONformat into a `bdlat` Simple type&period; The primary method is `getValue`,which decodes into a specified object and is overloaded for all `bdlat`Simple types&period;

== Synopsis

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

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

== 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`] 
| `getQuotedString` overloads
| xref:BloombergLP/baljsn/ParserUtil/getUnquotedString-03.adoc[`getUnquotedString`] 
| Load into the specified `value` the string value in the specified `data`&period; Return 0 on success and a non&hyphen;zero value otherwise&period;
| xref:BloombergLP/baljsn/ParserUtil/getValue-08c.adoc[`getValue`] 
| `getValue` overloads
| xref:BloombergLP/baljsn/ParserUtil/stripQuotes.adoc[`stripQuotes`] 
| If the specified `&ast;str` is at least two characters long and begins and ends with quotation marks (&quot;), then remove the first and last characters&semi; otherwise, do not modify `&ast;str`&period; Return `true` if `&ast;str` was modified&period;
|===



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