Fixed a few spots in the docs that were still using json as a property.

This commit is contained in:
Kamil Kisiel
2012-12-17 11:02:06 -08:00
parent b30b09e84c
commit fe0b0a989f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ Things shouldnt be this way. Not in Python.
'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>`_.
+2 -2
View File
@@ -128,10 +128,10 @@ There's also a builtin JSON decoder, in case you're dealing with JSON data::
>>> 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