I have to decode JSON with Extjs 4
:
I have used Ext.decode(string, true)
, but it doesn't work 'cause my string is a JSON with a JSON string (escaped) inside... like this:
var string = '{
success: true,
rows: [{
"id": 33,
"defaultset": 1,
"name": "Generico",
"jsonfields": "[{\"name\":\"cm:addressees\",\"title\":\"Destinatari\",\"description\":\"Destinatari\",\"dataType\":\"d:text\",\"url\":\"\/api\/property\/cm_addressees\"}]",
"eliminato": 0
}]
}';
as you can see the field jsonfields
is a JSON string. When I use
Ext.decode(string, true);
nothing happens neither error.
Any suggestions?