Return the Python representation of ``s`` (a ``str`` or ``unicode`` instance containing a JSON document)
(self, s, _w=WHITESPACE.match)
| 311 | self.strict = strict |
| 312 | |
| 313 | def decode(self, s, _w=WHITESPACE.match): |
| 314 | """ |
| 315 | Return the Python representation of ``s`` (a ``str`` or ``unicode`` |
| 316 | instance containing a JSON document) |
| 317 | |
| 318 | """ |
| 319 | obj, end = self.raw_decode(s, idx=_w(s, 0).end()) |
| 320 | end = _w(s, end).end() |
| 321 | if end != len(s): |
| 322 | raise ValueError(errmsg("Extra data", s, end, len(s))) |
| 323 | return obj |
| 324 | |
| 325 | def raw_decode(self, s, **kw): |
| 326 | """Decode a JSON document from ``s`` (a ``str`` or ``unicode`` beginning |
no test coverage detected