I have a function
$.post('php/client.login.php', {username:username, password:password}, function(json){
var ids = json;
alert(json.id);
}, 'json');
Which returns undefined, the json data i am trying to read is this
[{"id":"8","client":"sam","email":"sam","username":"sam","password":"sam","case_ids":"61,63,54"}]
it's parsing fine but i cannot read the data, any suggestions?