[New-bugs-announce] [issue40153] json dump with repeated key
Facundo Batista
report at bugs.python.org
Thu Apr 2 08:19:18 EDT 2020
New submission from Facundo Batista <facundo at taniquetil.com.ar>:
As stated in docs [0], JSON structures must not have duplicated keys.
>>> json.dumps({1:2, "1":3})
'{"1": 2, "1": 3}'
This is related to https://bugs.python.org/issue34972 .
[0] "The RFC specifies that the names within a JSON object should be unique, ..." https://docs.python.org/3/library/json.html#repeated-names-within-an-object
----------
messages: 365581
nosy: facundobatista
priority: normal
severity: normal
status: open
title: json dump with repeated key
versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40153>
_______________________________________
More information about the New-bugs-announce
mailing list