[docs] [issue30550] Document order-preserving dictionary output in json

Eric O. LEBIGOT report at bugs.python.org
Sun Jul 14 16:06:39 EDT 2019

Eric O. LEBIGOT <eric.lebigot at normalesup.org> added the comment:

Kyle, what you're saying is correct but is unfortunately unrelated to any of the points in the original issue. In fact, the JSON encoder does preserve whatever order the dictionary elements are in, and it would be useful to document this. Thus, if a user gives an OrderedDict (or a dict with a known order, in Python 3.7+), it is useful that he know that the order of its elements will not be changed upon transformation into JSON.


Python tracker <report at bugs.python.org>

More information about the docs mailing list