Skip to content

IJSONOptions

Type interface

Defines options for JSON format parser

Sources

IJSONOptions is an interface: it describes a shape of data and is not imported on its own.

Inheritance

IJSONOptions extends IDataParserOptions.

IJSONOptions is not extended by any other symbol.

Properties

dateFields

Type string[]

A list of fields that hold date/time infromation.

Parser will try to convert such fields into Date objects.

dateFormatter

Type DateFormatter

A date formatted to be used when parsing dates.

numberFields

Type string[]

A list of fields that should be treaded as numeric.

Any information container in such fields will be converted to number.

2 inherited items
dateFormat

Type stringInherited from IDataParserOptions

Override date format set in dateFormatter.

More info: Formatting Date & Time: parsing dates Tutorial on date parsing

emptyAs

Type anyInherited from IDataParserOptions

Empty values (e.g. empty strings, null, etc.) will be replaced with this.