{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"closed","milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/1a37609a4fc8733125d8a74c68cf6e2d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1a37609a4fc8733125d8a74c68cf6e2d","url":"https://api.github.com/users/sriedel","login":"sriedel","id":199033},"assignee":null,"updated_at":"2011-11-15T16:08:02Z","labels":[],"closed_at":"2011-11-15T16:08:02Z","comments":14,"url":"https://api.github.com/repos/jnicklas/capybara/issues/394","body":"When requesting a page in json format from a rails 3 application via cucumber-rails 1.0 with capybara 1.0, I get the following response:\r\n\r\n    <!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\">\r\n    <html><body><p>[]</p></body></html>\r\n\r\nThis had worked with capybara 0.4.x and cucumber-rails 0.5.x. I'm not entirely certain as to which gem introduced the error though.","html_url":"https://github.com/jnicklas/capybara/issues/394","title":"page.body wraps JSON responses in HTML","number":394,"id":1114439,"created_at":"2011-06-25T11:09:01Z"},"action":"closed"}