Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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('')
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #write #json #pythonb
ADD COMMENT
Topic
Name
5+5 =