This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author facundobatista
Recipients My-Tien Nguyen, eric.smith, facundobatista, steve.dower, xtreak
Date 2020-02-03.14:42:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1580740950.94.0.751182315779.issue34972@roundup.psfhosted.org>
In-reply-to
Content
I understand (and agree with) the merits of automatically converting the int to str when dumping to a string.

However, this result really surprised me:

>>> json.dumps({1:2, "1":3})
'{"1": 2, "1": 3}'

Is it a valid JSON?
History
Date User Action Args
2020-02-03 14:42:30facundobatistasetrecipients: + facundobatista, eric.smith, steve.dower, xtreak, My-Tien Nguyen
2020-02-03 14:42:30facundobatistasetmessageid: <1580740950.94.0.751182315779.issue34972@roundup.psfhosted.org>
2020-02-03 14:42:30facundobatistalinkissue34972 messages
2020-02-03 14:42:30facundobatistacreate