serialization - serialize Ext.data.JsonStore content -
how serialize jsonstore content? tried ext.encode(store.data.items), throws exception "too many recursions".
here's quick function should work
function(store) { if(typeof(store) != 'object') { return ''; } var dataarray = []; var encodeddata = ''; var data = store.data.items; ext.each(data, function(item, index, array) { dataarray.push(item.data); }); return ext.encode(dataarray); },
Comments
Post a Comment