8000 Merge pull request #1065 from pyfisch/pyfisch-json · realpython/python-guide@a1c9d69 · GitHub
[go: up one dir, main page]

Skip to content

Commit a1c9d69

Browse files
authored
Merge pull request #1065 from pyfisch/pyfisch-json
Remove simplejson from guide
2 parents 3525c13 + 58befe5 commit a1c9d69

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

docs/scenarios/json.rst

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ JSON
55

66
.. image:: /_static/photos/33928819683_97b5c6a184_k_d.jpg
77

8-
The `json <https://docs.python.org/2/library/json.html>`_ library can parse
8+
The `json <https://docs.python.org/3/library/json.html>`_ library can parse
99
JSON from strings or files. The library parses JSON into a Python dictionary
1010
or list. It can also convert Python dictionaries or lists into JSON strings.
1111

@@ -46,27 +46,3 @@ You can also convert the following to JSON:
4646
4747
print(json.dumps(d))
4848
'{"first_name": "Guido", "last_name": "Rossum", "titles": ["BDFL", "Developer"]}'
49-
50-
51-
**********
52-
simplejson
53-
**********
54-
55-
The json library was added to Python in version 2.6.
56-
If you're using an earlier version of Python, the
57-
`simplejson <https://simplejson.readthedocs.io/en/latest/>`_ library is
58-
available via PyPI.
59-
60-
simplejson mimics the json standard library. It is available so that developers
61-
that use older versions of Python can use the latest features available in the
62-
json lib.
63-
64-
You can start using simplejson when the json library is not available by
65-
importing simplejson under a different name:
66-
67-
.. code-block:: python
68-
69-
import simplejson as json
70-
71-
After importing simplejson as `json`, the above examples will all work as if you
72-
were using the standard json library.

0 commit comments

Comments
 (0)
0