var instance = new GC.Spread.Sheets.Workbook(host); var value; // Type: any value = instance.toJSON(serializationOption);
function toJSON( serializationOption : Object ) : any;
Parameters
- serializationOption
- - The serialization options.
var instance = new GC.Spread.Sheets.Workbook(host); var value; // Type: any value = instance.toJSON(serializationOption);
function toJSON( serializationOption : Object ) : any;
activeSheet.getCell(0,0).value(123); var jsonStr = null; //export jsonStr = JSON.stringify(spread.toJSON(false)); //import spread.fromJSON(JSON.parse(jsonStr)); alert(jsonStr);
SpreadJS serializes the sheet's data source and the table's data source as a cell value if the includeBindingSource argument of the toJSON method is true.
The serializationOption parameter has the following arguments:
Name |
Type |
Description |
||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
serializationOption |
Object |
The serialization options.
|