GcSpread.Sheets Namespace > Sheet type : toJSON Method |
var instance = new GcSpread.Sheets.Sheet(name); var value; // Type: Object value = instance.toJSON(serializationOption);
function toJSON( serializationOption : Object ) : Object;
activeSheet.getCell(0,0).value(123); var jsonStr = null; //export jsonStr = JSON.stringify(activeSheet.toJSON()); //import activeSheet.fromJSON(JSON.parse(jsonStr)); alert(jsonStr);
The serializationOption parameter has the following argument:
Argument | Type | Description |
serializationOption.includeBindingSource | Boolean | Whether to include the sheet's data source and the table's data source when the object state is saved to a JSON string. |