[#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. The primary method is `getValue`,which decodes into a specified object and is overloaded for all `bdlat`Simple types. == Synopsis Declared in `<baljsn_parserutil.h>` [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::Variant2<Date, DateTz>`. | xref:BloombergLP/baljsn/ParserUtil/DatetimeOrDatetimeTz.adoc[`DatetimeOrDatetimeTz`] | `DatetimeOrDatetimeTz` is a convenient alias for `bdlb::Variant2<Datetime, DatetimeTz>`. | xref:BloombergLP/baljsn/ParserUtil/TimeOrTimeTz.adoc[`TimeOrTimeTz`] | `TimeOrTimeTz` is a convenient alias for `bdlb::Variant2<Time, TimeTz>`. |=== == 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`. Return 0 on success and a non‐zero value otherwise. | xref:BloombergLP/baljsn/ParserUtil/getValue-08c.adoc[`getValue`] | `getValue` overloads | xref:BloombergLP/baljsn/ParserUtil/stripQuotes.adoc[`stripQuotes`] | If the specified `*str` is at least two characters long and begins and ends with quotation marks ("), then remove the first and last characters; otherwise, do not modify `*str`. Return `true` if `*str` was modified. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#