Skip to content

Sheet2JSONOpts

On this page

Options for converting a worksheet to an array of JSON objects

interface Sheet2JSONOpts extends WorksheetCellBudgetOptions

Properties

NameTypeRequiredDescription
maxWorksheetCellsnumberNoMaximum cumulative cell work per sheet. This counts explicit cells plus
generated column, hyperlink, span, and export positions. XLSX reads default
to 10,000,000; exports default to 1,000,000.
header"A" | number | string[]No"A" for column-letter keys, number for 1-indexed row keys, string[] for custom headers
rangeanyNoRestrict output to a specific range (Range object, A1 string, or row number)
blankrowsbooleanNoIf true, include blank rows in output
defvalanyNoDefault value for missing cells
rawbooleanNoIf true, use raw values (v) instead of formatted text (w)
skipHiddenbooleanNoIf true, skip hidden rows and columns
rawNumbersbooleanNoIf true, emit raw numeric values for non-date number cells
UTCbooleanNoIf true, interpret dates as UTC
dateNFNumberFormatNoOverride date format for date cells
dateOutput"iso"NoIf "iso", emit date/datetime cells as machine-readable ISO-like strings
date1904booleanNoIf true, use 1904 date system for date serial numbers