openwebrx-clone/owrx/jsons.py
2021-02-23 23:23:37 +01:00

10 lines
224 B
Python

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)