What code can I write to read python data from a json file I save and then convert it into a list?
Here is some sample code:
def read_json_file(filename):
"""
reads from a json file and saves the result in a list named data
"""
with open(filename, 'r') as fp:
# INSERT THE MISSING PIECE OF CODE HERE
data = json.loads(content)
return data