Removed supplemental metadata for
now
This commit is contained in:
Jamie Hardt
2022-11-26 11:42:37 -08:00
parent 710473f2aa
commit c897d080bb
3 changed files with 50 additions and 21 deletions

View File

@@ -8,7 +8,7 @@ from enum import Enum
class MyJSONEncoder(json.JSONEncoder):
def default(self, o):
if isinstance(o, Enum):
return dict(name=o._name_, value=o._value_)
return o._name_
else:
return super().default(o)