Hi all,

I'm trying to decode a basic json string like this :
Code:
{   id: 'sample',   name: 'sample',   xtype: 'textfield',   fieldLabel: 'Test field',
   renderTo: 'test'}
The goal is to compose dynamically a json text and reuse it to dynamically build a component.
But the Ext.decode throws an error.

Here is the full code :
Code:
jsonConfig = "{" +
"renderTo: 'test'," +
"id: 'sample'," +
"name: 'sample'," +
"xtype: 'textfield'," +
"fieldLabel: 'Test field'" +
"}"


var jsonCmp = Ext.decode(jsonConfig);
The error type is 'non_object_property_load' in Chrome debugger.