code: def load_json_from_string(string):
      
      try:
          json_data = json.loads(string)
      except ValueError as e:
          raise ValueError('Given string is not valid JSON: {}'.format(e))
      else:
          return json_data
docs: Load schema from JSON string