def get_sample_dashboards_json()

in scripts/dashboard/validate_dashboards_format.py [0:0]


def get_sample_dashboards_json(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