Skip to content

Commit e240d03

Browse files
committed
Add limit to the serialize_to_json
1 parent 5d481a4 commit e240d03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aikido_zen/helpers/serialize_to_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def serialize_to_json(obj):
1010
if that fails it returns an empty JSON string "{}"
1111
"""
1212
try:
13-
return json.dumps(obj)
13+
return json.dumps(obj)[:5000]
1414
except Exception:
1515
try:
1616
return json.dumps(dict(obj))

0 commit comments

Comments
 (0)