actually call custom encoder
@@ -65,8 +65,7 @@ class Endpoint(object):
self.p_prev_states = []
def to_JSON(self):
- return json.dumps(self, default=lambda o: o.__dict__,
- sort_keys=True, indent=4)
+ return json.dumps(self, cls=EndpointEncoder)
@staticmethod
def make_hash(machine):
