Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

read json file

# Python program to read JSON
# from a file
  
  
import json
  
# Opening JSON file
with open('sample.json', 'r') as openfile:
  
    # Reading from json file
    json_object = json.load(openfile)
  
print(json_object)
print(type(json_object))
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #read #json #file
ADD COMMENT
Topic
Name
9+7 =