Title: JSON.dumps() creates invalid JSON with single quotes
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.8
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 2020-12-07 14:13 by imeuropa. 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 ( JSON should use double quotes not single quotes.
msg382616 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2020-12-07 02:26
Date User Action Args
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