xxxxxxxxxx
import json
array = '{"fruits": ["apple", "banana", "orange"]}'
data = json.loads(array)
print data['fruits']
# the print displays:
# [u'apple', u'banana', u'orange']
xxxxxxxxxx
import json
with open("../src/json/countries.json", "r", encoding='utf-8') as file:
fileStr = file.read()
dictOrArray = json.loads(fileStr)