import json


def load_json(json_filespec):
  """
  Loads JSON from a config file
  Args:
    json_filespec: path/to/file.json
  Returns:
    a dict made from the JSON read, if successful
  Raises:
    IOError if the file could not be opened
    ValueError if the JSON could not be read successfully
    RuntimeError if something else went wrong
  """
  json_fh = open(json_filespec)
  config_dict = json.load(json_fh)
  json_fh.close()
  return config_dict