

def model_json(self):
    output = self.model.as_dict()
    for key in self.REPLACE_ATTRIBUTES:
        output[key] = self.REPLACE_ATTRIBUTES[key](output[key])
    for key in self.STRIP_ATTRIBUTES:
        del output[key]
    return web.utf8(escape.json_encode(output))

dataset/ETHPy150Open gmr/tinman/tinman/handlers/mixins.py ModelAPIMixin.model_json/original