def get(self): self.set_header('Content-Type', 'application/json') items = ItemList.get_dpt() response = json_serialize(items) self.write(response)