SpreadJS 14
GC.Spread.Sheets Namespace / Worksheet type / fromJSON Method
The sheet data from deserialization.
In This Topic
    fromJSON Method
    In This Topic
    Loads the object state from the specified JSON string.
    Syntax
    var instance = new GC.Spread.Sheets.Worksheet(name);
    var value; // Type: any
    value = instance.fromJSON(sheetSettings);
    function fromJSON( 
       sheetSettings : Object
    ) : any;

    Parameters

    sheetSettings
    The sheet data from deserialization.
    Example
    This example uses the fromJSON method.
    activeSheet.getCell(0,0).value(123);
    var jsonStr = null;
    //export
    jsonStr = JSON.stringify(activeSheet.toJSON());
    //import
    activeSheet.fromJSON(JSON.parse(jsonStr));
    alert(jsonStr);
    See Also

    Reference

    Worksheet type