public class JsonSaveOptions extends SaveOptions
| Constructor and Description |
|---|
JsonSaveOptions()
Creates options for saving json file.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAlwaysExportAsJsonObject()
Indicates whether always exporting excel to json as object, even there is only a worksheet in the file.
|
CellArea |
getExportArea()
Gets the exporting range.
|
boolean |
getExportAsString()
Exports the string value of the cells to json.
|
boolean |
getExportEmptyCells()
Indicates whether exporting empty cells as null.
|
int |
getExportHyperlinkType()
Represents the type of exporting hyperlink to json.
|
boolean |
getExportNestedStructure()
Exported as parent-child hierarchy Json structure.
|
boolean |
getExportStylePool()
Indicates whether to export styles collectively or individually to each cell.
|
java.lang.String |
getIndent()
Indicates the indent.
|
java.lang.String[] |
getSchemas()
The original json schema of each worksheet.
|
int[] |
getSheetIndexes()
Represents the indexes of exported sheets.
|
boolean |
getSkipEmptyRows()
Indicates whether skipping emtpy rows.
|
boolean |
getToExcelStruct()
Indicates whether converting to json struct of the Excel file.
|
boolean |
hasHeaderRow()
Indicates whether the range contains header row.
|
void |
setAlwaysExportAsJsonObject(boolean value)
Indicates whether always exporting excel to json as object, even there is only a worksheet in the file.
|
void |
setExportArea(CellArea value)
Sets the exporting range.
|
void |
setExportAsString(boolean value)
Exports the string value of the cells to json.
|
void |
setExportEmptyCells(boolean value)
Indicates whether exporting empty cells as null.
|
void |
setExportHyperlinkType(int value)
Represents the type of exporting hyperlink to json.
|
void |
setExportNestedStructure(boolean value)
Exported as parent-child hierarchy Json structure.
|
void |
setExportStylePool(boolean value)
Indicates whether to export styles collectively or individually to each cell.
|
void |
setHasHeaderRow(boolean value)
Indicates whether the range contains header row.
|
void |
setIndent(java.lang.String value)
Indicates the indent.
|
void |
setSchemas(java.lang.String[] value)
The original json schema of each worksheet.
|
void |
setSheetIndexes(int[] value)
Represents the indexes of exported sheets.
|
void |
setSkipEmptyRows(boolean value)
Indicates whether skipping emtpy rows.
|
void |
setToExcelStruct(boolean value)
Indicates whether converting to json struct of the Excel file.
|
getCachedFileFolder, getCheckExcelRestriction, getClearData, getCreateDirectory, getEncryptDocumentProperties, getMergeAreas, getRefreshChartCache, getSaveFormat, getSortExternalNames, getSortNames, getUpdateSmartArt, getValidateMergedAreas, getWarningCallback, setCachedFileFolder, setCheckExcelRestriction, setClearData, setCreateDirectory, setEncryptDocumentProperties, setMergeAreas, setRefreshChartCache, setSortExternalNames, setSortNames, setUpdateSmartArt, setValidateMergedAreas, setWarningCallbackpublic boolean getExportStylePool()
public void setExportStylePool(boolean value)
public int getExportHyperlinkType()
Remarks
The default value isJsonExportHyperlinkType.DISPLAY_STRING;public void setExportHyperlinkType(int value)
Remarks
The default value isJsonExportHyperlinkType.DISPLAY_STRING;public boolean getSkipEmptyRows()
public void setSkipEmptyRows(boolean value)
public int[] getSheetIndexes()
public void setSheetIndexes(int[] value)
public java.lang.String[] getSchemas()
public void setSchemas(java.lang.String[] value)
public CellArea getExportArea()
public void setExportArea(CellArea value)
public boolean hasHeaderRow()
public void setHasHeaderRow(boolean value)
public boolean getExportAsString()
public void setExportAsString(boolean value)
public java.lang.String getIndent()
Remarks
If the indent is null or empty, the exported json is not formatted.public void setIndent(java.lang.String value)
Remarks
If the indent is null or empty, the exported json is not formatted.public boolean getExportNestedStructure()
Remarks
public void setExportNestedStructure(boolean value)
Remarks
public boolean getExportEmptyCells()
public void setExportEmptyCells(boolean value)
public boolean getAlwaysExportAsJsonObject()
public void setAlwaysExportAsJsonObject(boolean value)
public boolean getToExcelStruct()
Remarks
Only for converting range to JSON.public void setToExcelStruct(boolean value)
Remarks
Only for converting range to JSON.See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.