openwebrx-clone/owrx/jsons.py

10 lines
224 B
Python
Raw Permalink Normal View History

from owrx.property import PropertyManager
import json
class Encoder(json.JSONEncoder):
def default(self, o):
if isinstance(o, PropertyManager):
return o.__dict__()
return super().default(o)