Ext.util.JSON.decode (shorthand Ext.decode) can be utilized to convert a JSON string into a Javascript object with ease.
Usage is simple:
var stringData = "{date: 'Friday 03rd of August 2007 02:47:09 PM'}"; try { var jsonData = Ext.util.JSON.decode(stringData); Ext.MessageBox.alert('Success', 'Decode of stringData OK<br />jsonData.date = ' + jsonData.date); // You can do anything with jsonData if you want. } catch (err) { Ext.MessageBox.alert('ERROR', 'Could not decode ' + stringData); }