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>

struct ParserUtil;

Type Aliases

Name

Description

DateOrDateTz

DateOrDateTz is a convenient alias for bdlb::Variant2<Date, DateTz>.

DatetimeOrDatetimeTz

DatetimeOrDatetimeTz is a convenient alias for bdlb::Variant2<Datetime, DatetimeTz>.

TimeOrTimeTz

TimeOrTimeTz is a convenient alias for bdlb::Variant2<Time, TimeTz>.

Static Member Functions

Name

Description

getQuotedString

getQuotedString overloads

getUnquotedString

Load into the specified value the string value in the specified data. Return 0 on success and a non‐zero value otherwise.

getValue

getValue overloads

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.

Created with MrDocs