0

The json is at:

https://pastebin.com/ZDQESKcX

This is my JSON response, i want to fetch the label value in address field using python(response>>view>>result>>location>>address>label), i need to print this label field value on the consol, please help, i have used this method :

I Tried:

response_data=data['Response']['View']['Result'][0]['Location']['Address']

1 Answer 1

1

View is an array, you need to index it.

response_data = data['Response']['View'][0]['Result'][0]['Location']['Address']       
Sign up to request clarification or add additional context in comments.

2 Comments

if i want to print some value from Result section, should this directory works??
See stackoverflow.com/questions/48193502/… for the general principles of accessing nested JSON data.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.