Return the Python representation of ``s`` (a ``str`` or ``unicode`` instance containing a JSON document)
(self, s, _w=WHITESPACE.match)
| 399 | self.scan_once = make_scanner(self) |
| 400 | |
| 401 | def decode(self, s, _w=WHITESPACE.match): |
| 402 | """Return the Python representation of ``s`` (a ``str`` or ``unicode`` |
| 403 | instance containing a JSON document) |
| 404 | |
| 405 | """ |
| 406 | obj, end = self.raw_decode(s) |
| 407 | end = _w(s, end).end() |
| 408 | if end != len(s): |
| 409 | raise JSONDecodeError("Extra data", s, end, len(s)) |
| 410 | return obj |
| 411 | |
| 412 | def raw_decode(self, s, idx=0, _w=WHITESPACE.match): |
| 413 | """Decode a JSON document from ``s`` (a ``str`` or ``unicode`` |
no test coverage detected