Extract Json Values

I m gettin JSON response as an array from the controller and i have tried it to extract the values from an array but i cant,i m new to yii please help me and advances thanks

[

{"id":"3","name":"aqdadsa","logo":"284","about":"asd","header":"asd","footer":"asd","createDate":"2014-06-04 00:00:00","updatedDate":"2014-06-04 17:37:30","status":"InActive"},


{"id":"13","name":"selva","logo":"294","about":"good","header":"well","footer":"better","createDate":"2014-06-06 00:00:00","updatedDate":"2014-06-06 18:59:15","status":"Active"}

]

i m getting this from controller and i dont how to access in ajax success function and to roll it in $.each() function

Hi. Try this:




var request = $.ajax({

	url: $url,

	type: "GET",

	cache: false,

	dataType: "json" 

});


request.done(function(response){

    if (response.id == 3)

    {

		...

    }

    if (response.logo == 284)

    {

		...

    }

});


request.error(function(jqXHR, status, error){

	alert (error + ": " + jqXHR.responseText);

	request = null;

});