New submission from Facundo Batista <facu...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue40153> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com