I have this inside of a function:
var json = Ext.JSON.decode("{xtype: 'textfield',maxLength: 40}");
and it is fine. ExtJS allows that.
Then I have this inside another function:
var json = Ext.JSON.decode("{xtype:'combo',store: storeMercadosCombo, displayField: 'mercado',valueField:'id'}");
and ExtJS shows me:
Ext.Error: You're trying to decode an invalid JSON String: ...
Where is the error? How should Ext.JSON.decode be?
I'm using ExtJS 4.2.1