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 boris
Recipients boris
Date 2019-11-09.00:22:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573258979.82.0.0958429006244.issue38751@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2019-11-09 00:22:59borissetrecipients: + boris
2019-11-09 00:22:59borissetmessageid: <1573258979.82.0.0958429006244.issue38751@roundup.psfhosted.org>
2019-11-09 00:22:59borislinkissue38751 messages
2019-11-09 00:22:59boriscreate