Answers for "how to import json file and get value from it python"

5

get json from file python

import json

with open('data.txt') as json_file:
    data = json.load(json_file)
    for p in data['people']:
        print('Name: ' + p['name'])
        print('Website: ' + p['website'])
        print('From: ' + p['from'])
        print('')
Posted by: Guest on November-29-2019

Code answers related to "how to import json file and get value from it python"

Code answers related to "Javascript"

Browse Popular Code Answers by Language