Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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