def load_json_string(data):
deserialized_object = None<EOL>try:<EOL><INDENT>deserialized_object = json.loads(data)<EOL><DEDENT>except TypeError:<EOL><INDENT>message = '<STR_LIT>' + repr(data)<EOL>raise securesystemslib.exceptions.Error(message)<EOL><DEDENT>except ValueError:<EOL><INDENT>message = '<STR_LIT>' + repr(data)<EOL>raise securesystemslib.exceptions.Error(message)<EOL><DEDENT>else:<EOL><INDENT>return deserialized_object<EOL><DEDENT>
<Purpose>
  Deserialize 'data' (JSON string) to a Python object.

<Arguments>
  data:
    A JSON string.

<Exceptions>
  securesystemslib.exceptions.Error, if 'data' cannot be deserialized to a
  Python object.

<Side Effects>
  None.

<Returns>
  Deserialized object.  For example, a dictionary.