Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kamil Kisiel · committed by Kamil Kisiel · parent b30b09e · Browse files · 2 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:docs/user/quickstart.rst+2 added-2 removed
126 unmodified lines
127There's also a builtin JSON decoder, in case you're dealing with JSON data::128129 >>> import requests130 >>> r = requests.get('https://github.com/timeline.json')131 >>> r.json131 >>> r.json()132 [{u'repository': {u'open_issues': 0, u'url': 'https://github.com/...133134In case the JSON decoding fails, ``r.json`` simply returns ``None``.134In case the JSON decoding fails, ``r.json`` raises an exception.135136137Raw Response Content138--------------------
357 unmodified lines
modified:docs/index.rst+1 added-1 removed
25 unmodified lines
26 >>> r.encoding27 'utf-8'28 >>> r.text29 u'{"type":"User"...'30 >>> r.json30 >>> r.json()31 {u'private_gists': 419, u'total_private_repos': 77, ...}3233See `similar code, without Requests <https://gist.github.com/973705>`_.34
98 unmodified lines