File tree Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Original file line number Diff line number Diff line change 5
5
6
6
.. image :: /_static/photos/33928819683_97b5c6a184_k_d.jpg
7
7
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
9
9
JSON from strings or files. The library parses JSON into a Python dictionary
10
10
or list. It can also convert Python dictionaries or lists into JSON strings.
11
11
@@ -46,27 +46,3 @@ You can also convert the following to JSON:
46
46
47
47
print (json.dumps(d))
48
48
' {"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.
You can’t perform that action at this time.
0 commit comments