lang-model/naive-nlu/tree_nlu/utils/json_dumper.py

5 lines
86 B
Python

def dumper(obj):
if isinstance(obj, set):
return list(obj)
return obj