Answers for "how to write json.dumps to json file in python"

5

write json pythonb

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 write json.dumps to json file in python"

Code answers related to "Javascript"

Browse Popular Code Answers by Language