def METHOD_NAME(path):
  '''Checks if file is in json format and returns data in dictionary form'''
  with open(path) as f:
    dashboards_dict = validate_json(f)
    if not dashboards_dict:
      raise JsonFormattingError("{} content could not be loaded".format(path))
    return dashboards_dict