def json_encoder(obj): iface = getattr(obj, '__schema__', None) if iface is None: return obj return to_dict(obj)
def __call__(self): result = to_dict(self.context) return result
def __call__(self): result = to_dict(self.context) for listing in result.get('listings', []): result[listing.type_] = listing.items return result
def __call__(self): return to_dict(self.context)