Why I am not able to get the individual row?

Why I am not able to get the individual row?

Hi,

I have a retured row from my database like this:


[{"result":"1","0":"1"}]


using:

  1. }).done(function(data) {
  2.     console.log("data: " + data);
  3.     console.log("data[0].result: " + data[0].result);
  4.     console.log("data.result: " + data.result);


but why my data[0].result or data.result shows undefined? then how can i get the field result?


Thanks,
Jassim