Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

# read the JSON file and also print the file content in JSON format.

# read the JSON file and also print the file content in JSON format.
with open(filename, 'r') as f:
  d = json.load(f)
  print(json.dumps(d, indent=2))
  
 
PREVIOUS NEXT
Tagged: #read #JSON #file #print #file #content #JSON
ADD COMMENT
Topic
Name
8+1 =