def raw_decode(self, s, idx=0):
        """Decode a JSON document from ``s`` (a ``str`` or ``unicode``
        beginning with a JSON document) and return a 2-tuple of the Python
        representation and the index in ``s`` where the document ended.

        This can be used to decode a JSON document from a string that may
        have extraneous data at the end.

        """
        try:
            obj, end = self.scan_once(s, idx)
        except __HOLE__:
            raise JSONDecodeError("No JSON object could be decoded", s, idx)
        return obj, end
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/simplejson/simplejson/decoder.py/JSONDecoder.raw_decode