docs: def _parse_object(value):
      """Coerce value into a dict.
  
      :param str value: Value to parse.
      :returns: dict or None if the value is not a JSON object
      :raises: TypeError or ValueError if value appears to be an object but can't
          be parsed as JSON.
      """
      value = value.lstrip()
      if not value or value[0] not in _brace_strings:
          return None
      return json.loads(value)