def get(self): data = [] locations = LocationModel.query().fetch(1000) for current in locations: location = json_util.to_dict(current) data.append(location) self.response.headers['Content-Type'] = 'application/json' self.response.write(json.dumps(data))