code: def load_json_from_file(file_path):
      
      try:
          with open(file_path) as f:
              json_data = json.load(f)
      except ValueError as e:
          raise ValueError('Given file {} is not a valid JSON file: {}'.format(file_path, e))
      else:
          return json_data
docs: Load schema from a JSON file