def raw_decode(self, s, **kw):
        """
        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.
        """
        kw.setdefault('context', self)
        try:
            obj, end = self._scanner.iterscan(s, **kw).next()
        except StopIteration:
            raise ValueError("No JSON object could be decoded")
        return obj, end
def raw_decode(self, s, **kw):
        
        kw.setdefault('context', self)
        try:
            obj, end = self._scanner.iterscan(s, **kw).next()
        except StopIteration:
            raise ValueError("No JSON object could be decoded")
        return obj, end
def raw_decode ( self , s , * * kw ) : kw . setdefault ( 'context' , self ) try : obj , end = self . _scanner . iterscan ( s , * * kw ) . next ( ) except StopIteration : raise ValueError ( "No JSON object could be decoded" ) return obj , end
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.
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 .