/posts and /posts/:id displays proper JSON data