This is a sample of the result after running data=JSON.parse(response) on a value returned by my server (PHP script).

{"value_1":0,"value_2":["a","b"]}

I can get the 'value_1' value by using data.value_1 but I just can't get the 'value_2' value. It looks like an array so surely data.value_2 gets the array and then I go form there, but it doesn't work.

Am I doing something wrong?