def get(self, postId): self.response.headers['Content-Type'] = "application/json; charset=UTF-8" post = Post.get_by_id(int(postId)) self.response.out.write(json.dumps({"content": post.content, "subject": post.subject}))