Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
657008ea
Commit
657008ea
authored
Aug 22, 2019
by
Raymond Hettinger
Committed by
GitHub
Aug 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-30550: Clarify JSON ordering guarantees (GH-15397)
parent
4be11c00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
Doc/library/json.rst
Doc/library/json.rst
+12
-0
No files found.
Doc/library/json.rst
View file @
657008ea
...
...
@@ -120,6 +120,18 @@ See :ref:`json-commandline` for detailed documentation.
value) is also a subset of YAML 1.0 and 1.1. This module can thus also be
used as a YAML serializer.
.. note::
This module's encoders and decoders preserve input and output order by
default. Order is only lost if the underlying containers are unordered.
Prior to Python 3.7, :class:`dict` was not guaranteed to be ordered, so
inputs and outputs were typically scrambled unless
:class:`collections.OrderedDict` was specifically requested. Starting
with Python 3.7, the regular :class:`dict` became order preserving, so
it is no longer necessary specify :class:`collections.OrderedDict` for
JSON generation and parsing.
Basic Usage
-----------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment