How to decode json response in ExtJs

//when json response is in this format {“success”:true,”data”:{“id”:11}} Ext.Ajax.request({ url:’connect.php’, params:{moduleId:moduleId, status:’insert’,activity:’save’,action:’doAction’}, success:function(res){ var response = Ext.util.JSON.decode(res.responseText); alert(response.data.id); } });