If I have Model and I want to serialize it to JSON to use in code, how can I do it better? I must use Reader/Writer or there is some other methods?
Ext.encode for this specifically. (returns string of the json)
var json = Ext.encode(this.getStore().data.items[0].data);
More info available on sencha docs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With