def get(self, blogId): blogEntry = BlogEntry.get_by_id(int(blogId)) self.response.headers['Content-Type'] = 'application/json; charset=UTF-8' b = {'subject': blogEntry.subject, 'content': blogEntry.content, 'created': blogEntry.created.strftime('%a %b %d %H:%M:%S %Y')} self.write(json.dumps(b))