[New-bugs-announce] [issue38751] Document maximum JSON depth or remove it.
Борис Верховский
report at bugs.python.org
Fri Nov 8 19:22:59 EST 2019
New submission from Борис Верховский <boris.verk at gmail.com>:
import json
foo = {}
for i in range(1000):
json.dumps(foo)
print(i)
foo = {'bar': foo}
Will error at 994. At a minimum this magic number should be documented, but it would be better if the json library could handle arbitrarily nested JSON or have a configurable limit.
https://github.com/lovasoa/bad_json_parsers
----------
components: Library (Lib)
messages: 356276
nosy: boris
priority: normal
severity: normal
status: open
title: Document maximum JSON depth or remove it.
type: enhancement
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38751>
_______________________________________
More information about the New-bugs-announce
mailing list