Skip to content

JSON2SheetOpts

On this page

Options for creating a worksheet from an array of JSON objects

interface JSON2SheetOpts extends CommonOptions

Properties

NameTypeRequiredDescription
WTFbooleanNoIf true, throw errors on unexpected situations instead of silently recovering
bookVBAbooleanNoReserved compatibility option. A true value is unsupported and throws XlsxError ("UNSUPPORTED").
cellDatesbooleanNoIf true, store dates as Date objects instead of serial numbers
sheetStubsbooleanNoIf true, include stub cells for empty cells within the used range
cellStylesbooleanNoIf true, include style/theme information on cells
passwordstringNoPassword for encrypted workbooks; non-empty values are unsupported and throw XlsxError ("UNSUPPORTED")
headerstring[]NoExplicit header row keys (overrides object key order)
skipHeaderbooleanNoIf true, do not emit a header row
densebooleanNoIf true, use dense (2D array) storage mode
dateNFNumberFormatNoDate format string for date cells
UTCbooleanNoIf true, interpret dates as UTC
date1904booleanNoIf true, use 1904 date system for date serial numbers
originnumber | string | CellAddressNoStarting cell for data: row number, A1 reference, or CellAddress
nullErrorbooleanNoIf true, convert null values to #NULL! error cells