ExtJS - convert json to Model -


i have json string need map model, i've been checking json reader, ext.data.reader.jsonview, seems wokrs proxy, need pass string (which contains json) , map model. possible?

thanks, angelo.

take on ext.data.model's constructor. http://docs.sencha.com/extjs/4.2.3/#!/api/ext.data.model-method-constructor can pass data , map model's fields. can like:

var model = new ext.data.model(ext.decode(<yourjsonstring>)); 

ext.data.model can replaced model class.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -