Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docassemble_base/docassemble/base/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5418,6 +5418,8 @@ def safe_json(the_object, level=0, is_key=False):
for sub_object in the_object:
new_list.append(safe_json(sub_object, level=level+1))
return new_list
if the_object.__class__.__name__ == "DAEmpty":
return the_object.to_json()
if hasattr(the_object, "as_dict") and callable(the_object.as_dict):
return the_object.as_dict()
if hasattr(the_object, "to_json") and callable(the_object.to_json):
Expand Down
Loading