def get(self): albums_query = Album.all().order('-date') albums = albums_query.fetch(60) results = []; for album in albums: result = {} result['key'] = str(album.key()) result['name'] = album.name result['cover'] = album.cover result['description'] = album.description results.append(result) s = json.dumps(results, separators=(',', ':')) self.response.headers['Content-Type'] = 'application/json' self.response.write(s)