Answers for ".loads with whole json file"

0

.loads with whole json file

# Python program to read
# json file
 
 
import json
 
# Opening JSON file
f = open('data.json')
 
# returns JSON object as
# a dictionary
data = json.load(f)
 
# Iterating through the json
# list
for i in data['emp_details']:
    print(i)
 
# Closing file
f.close()
Posted by: Guest on May-03-2022
0

.loads with whole json file

# Python program to read
# json file
 
 
import json
 
# Opening JSON file
f = open('data.json')
 
# returns JSON object as
# a dictionary
data = json.load(f)
 
# Iterating through the json
# list
for i in data['emp_details']:
    print(i)
 
# Closing file
f.close()
Posted by: Guest on May-03-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language