After several test and search, I can't find a way to navigate after parsing a JSON; here is the post-parsing result :
Object {documentation: "https://geocoder.opencagedata.com/api", licenses: Array[2], rate: Object, results: Array[1], status: Object…}
documentation : "https://geocoder.opencagedata.com/api" licenses : Array[2] rate : Object results : Array[1] 0 : Object annotations : Object components : Object building : "C" city : "Bordeaux" country : "France" country_code : "fr" county : "Bordeaux" postcode : "33000" road : "Quai de Bacalan" state : "Aquitaine" suburb : "Bordeaux Maritime"
For example I can get the value of the response with the following code :
var locname = response.status.code;
But in the case there is a int as Object, like this :
var locname = response.results.0.formatted;
I have the following error :
Uncaught SyntaxError: Unexpected number
I try to escape the character, putting quote, etc but I couldn't find any solution.