mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
13 lines
334 B
Python
13 lines
334 B
Python
from owrx.property import PropertyManager
|
|
from owrx.active.list import ActiveList
|
|
import json
|
|
|
|
|
|
class Encoder(json.JSONEncoder):
|
|
def default(self, o):
|
|
if isinstance(o, PropertyManager):
|
|
return o.__dict__()
|
|
if isinstance(o, ActiveList):
|
|
return o.__list__()
|
|
return super().default(o)
|