Answers for "creating a shared json file in python"

6

python json dump to file

import json
with open('data.json', 'w') as f:
    json.dump(data, f)
Posted by: Guest on August-15-2020
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 "creating a shared json file in python"

Code answers related to "Javascript"

Browse Popular Code Answers by Language