'utf-8'
>>> r.text
u'{"type":"User"...'
- >>> r.json
+ >>> r.json()
{u'private_gists': 419, u'total_private_repos': 77, ...}
See `similar code, without Requests <https://gist.github.com/973705>`_.
>>> import requests
>>> r = requests.get('https://github.com/timeline.json')
- >>> r.json
+ >>> r.json()
[{u'repository': {u'open_issues': 0, u'url': 'https://github.com/...
-In case the JSON decoding fails, ``r.json`` simply returns ``None``.
+In case the JSON decoding fails, ``r.json`` raises an exception.
Raw Response Content