Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to read json from python

#this code helps translate JSON file
#to a dictionary

import json

person = '{"name": "Bob", "languages": ["English", "Fench"]}'
person_dict = json.loads(person)

print( person_dict)

print(person_dict['languages'])
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #read #json #python
ADD COMMENT
Topic
Name
4+6 =