Can someone help me extract from this JSON? I can get elements that are nested two ‘deep’ but cannot for the life of me find a way to go any deeper.
In the example JSON posted here I can get 'statuscode'
, copyright.text
and maxResults
with
{{ json_data['info'].statuscode }}
{{ json_data['info']['copyright'].text }}
{{ json_data['options']['maxResults'] }}
But try as I might I cannot get anything from results
Thanks in advance for any pointers
Original JSON is as follows
{"info":{"statuscode":0,"copyright":{"text":"\u00A9 2019 MapQuest, Inc.","imageUrl":"http://api.mqcdn.com/res/mqlogo.gif","imageAltText":"\u00A9 2019 MapQuest, Inc."},"messages":[]},"options":{"maxResults":1,"thumbMaps":true,"ignoreLatLngInput":false},"results":[{"providedLocation":{"latLng":{"lat":99.519138,"lng":-99.321133}},"locations":[{"street":"MyStreet","adminArea6":"","adminArea6Type":"Neighborhood","adminArea5":"MyCity","adminArea5Type":"City","adminArea4":"","adminArea4Type":"County","adminArea3":"England","adminArea3Type":"State","adminArea1":"GB","adminArea1Type":"Country","postalCode":"A12","geocodeQualityCode":"B1AAA","geocodeQuality":"STREET","dragPoint":false,"sideOfStreet":"N","linkId":"0","unknownInput":"","type":"s","latLng":{"lat":99.519138,"lng":-99.321135},"displayLatLng":{"lat":99.519138,"lng":-99.321135}}]}]}
Which formats as