After receiving a JSON object, when I attempt to log it using:
console.log(response.json);
I am presented with the following:
{ results:
[ { address_components: [Object],
formatted_address: 'Google Bldg 42, 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA',
geometry: [Object],
place_id: 'ChIJPzxqWQK6j4AR3OFRJ6LMaKo',
types: [Object] } ],
status: 'OK' }
My goal is to access the formated_address
field. I have attempted different variations of
console.log(response.json.formatted_address);
but haven't been able to solve it yet.