Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get json content from file

import json

with open('data.json') 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 stackabuse.com #
 
PREVIOUS NEXT
Tagged: #python #json #content #file
ADD COMMENT
Topic
Name
8+6 =