[issue42583] JSON.dumps() creates invalid JSON with single quotes

Kjartan Hrafnkelsson report at bugs.python.org
Sun Dec 6 19:32:12 EST 2020


New submission from Kjartan Hrafnkelsson <george at bund.lu>:

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.

----------
components: Library (Lib)
messages: 382615
nosy: imeuropa
priority: normal
severity: normal
status: open
title: JSON.dumps() creates invalid JSON with single quotes
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42583>
_______________________________________


More information about the Python-bugs-list mailing list