import json


def read_data(f_name):
  """
  Given an input file name f_name, reads the JSON data inside returns as
  Python data object.
  """
  f = open(f_name, 'r')
  json_data = json.loads(f.read())
  f.close()
  return json_data