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.

classification
Title: JSON.dumps() creates invalid JSON with single quotes
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.8
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: imeuropa, rhettinger
Priority: normal Keywords:

Created on 2020-12-07 00:32 by imeuropa, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg382615 - (view) Author: Kjartan Hrafnkelsson (imeuropa) Date: 2020-12-07 00:32
the JSON.dumps() function should create valid JSON using double quotes only, however when the function is run with an object as its argument it results in invalid JSON using single quotes. As defined in the ECMA-404 JSON Data Interchange Syntax (http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf) JSON should use double quotes not single quotes.
msg382616 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2020-12-07 02:26
Example?
History
Date User Action Args
2022-04-11 14:59:39adminsetgithub: 86749
2020-12-07 14:13:43imeuropasetstatus: pending -> closed
stage: resolved
2020-12-07 09:23:58serhiy.storchakasetstatus: open -> pending
2020-12-07 02:26:07rhettingersetnosy: + rhettinger
messages: + msg382616
2020-12-07 00:32:12imeuropacreate