Posted 28 June 2020, 7:23 pm EST
Hi
I try to save Workbook / Sheet into database with
Save :
var spread = new GC.Spread.Sheets.Workbook($("#ss")[0]);
var sheet = spread.getActiveSheet();
var data = JSON.stringify(sheet.toJSON())
Load:
sheet.fromJSON(JSON.parse(data))
But I always return error
Uncaught SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse ()
at :1:21
How can I achieve this?
Thanks