In my angularjs file I stringified my json result
console.log("details... "+JSON.stringify(response));
it is somewhat of this nature
{"data":{"success":true,"errorCode":0,"data":[{"id":1098,"surname":"Tony","firstname":"Wilson","othername":"","dob":"Jun 9, 2000 12:00:00 AM","gender":"MALE",
when I try to console for firstname I get a surprising outcome of undefined
console.log("firstname... "+ response.data.data.firstname) ;
please what could be wrong