Read json data value.
Getting the following result(json encoded)
[{"client_id":1,"client_first_name":"Pooja"}]null
how can i read "client_first_name" value.
$.ajax({
type: "POST",
data: {id: clientid},
dataType: 'json',
url: webURL + "/invoice/clientdetail/",
success: function(data)
{
var res = json_encode(data);
}
});
how can i read "client_first_name" value
*data- getting json array, how can i read particular value.