Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "Name":"TESTING",
- "Place":"India",
- "Path":"Road",
- "Details":
- [
- {
- "city":"",
- "landmark":"aaabbbcccc",
- "pin":"500001"
- },
- {
- "city":"",
- "landmark":"aaabbbcccc",
- "pin":"500001"
- },
- {
- "city":"",
- "landmark":"xxxyyyzzzz",
- "pin":"510009"
- }
- ]
- }
- import glob, os, json
- from pprint import pprint
- jsonfile = "testing.json"
- with open('C:/Users/dev/Desktop/JSONSTest/'+jsonfile) as data_file:
- data = json.load(data_file)
- pprint(data)
- for i in data['Details']:
- print i['city']
Add Comment
Please, Sign In to add comment