I made an API call (google translate) and it returns the following:
{
"data": {
"detections": [
[
{
"language": "en",
"isReliable": false,
"confidence": 0.051902372
}
]
]
}
}
I want to access the "language" value using javascript (using the jQuery ajax function). I tried something like:
response.data.detections[0][0].language
but that does not work. Help?
responseis set to that data structure,response.data.detections[0][0].languagereturns"en"