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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -