{"action":"created","issue":{"url":"https://api.github.com/repos/JarrodCTaylor/fauxjax/issues/13","labels_url":"https://api.github.com/repos/JarrodCTaylor/fauxjax/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/JarrodCTaylor/fauxjax/issues/13/comments","events_url":"https://api.github.com/repos/JarrodCTaylor/fauxjax/issues/13/events","html_url":"https://github.com/JarrodCTaylor/fauxjax/pull/13","id":63437327,"number":13,"title":"Failing test for JSON response on error","user":{"login":"dustinfarris","id":1087165,"avatar_url":"https://avatars.githubusercontent.com/u/1087165?v=3","gravatar_id":"","url":"https://api.github.com/users/dustinfarris","html_url":"https://github.com/dustinfarris","followers_url":"https://api.github.com/users/dustinfarris/followers","following_url":"https://api.github.com/users/dustinfarris/following{/other_user}","gists_url":"https://api.github.com/users/dustinfarris/gists{/gist_id}","starred_url":"https://api.github.com/users/dustinfarris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dustinfarris/subscriptions","organizations_url":"https://api.github.com/users/dustinfarris/orgs","repos_url":"https://api.github.com/users/dustinfarris/repos","events_url":"https://api.github.com/users/dustinfarris/events{/privacy}","received_events_url":"https://api.github.com/users/dustinfarris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-21T18:21:20Z","updated_at":"2015-03-23T00:39:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JarrodCTaylor/fauxjax/pulls/13","html_url":"https://github.com/JarrodCTaylor/fauxjax/pull/13","diff_url":"https://github.com/JarrodCTaylor/fauxjax/pull/13.diff","patch_url":"https://github.com/JarrodCTaylor/fauxjax/pull/13.patch"},"body":"There should be a way to specify the Content-Type of the response so that calls to `$.ajax` do not have to explicitly declare `dataType`\r\n\r\nFrom the jQuery docs:\r\n\r\n> The type of pre-processing depends by default upon the Content-Type of the response, but can be set explicitly using the dataType option. If the dataType option is provided, the Content-Type header of the response will be disregarded.\r\n\r\nFauxjax provides the `dataType` settings, but this seems to be used for matching the request from the `$.ajax` call, not for preparing the actual response.  There should be a way to adjust the response data type in a way that does not affect request matching."},"comment":{"url":"https://api.github.com/repos/JarrodCTaylor/fauxjax/issues/comments/84739245","html_url":"https://github.com/JarrodCTaylor/fauxjax/pull/13#issuecomment-84739245","issue_url":"https://api.github.com/repos/JarrodCTaylor/fauxjax/issues/13","id":84739245,"user":{"login":"dustinfarris","id":1087165,"avatar_url":"https://avatars.githubusercontent.com/u/1087165?v=3","gravatar_id":"","url":"https://api.github.com/users/dustinfarris","html_url":"https://github.com/dustinfarris","followers_url":"https://api.github.com/users/dustinfarris/followers","following_url":"https://api.github.com/users/dustinfarris/following{/other_user}","gists_url":"https://api.github.com/users/dustinfarris/gists{/gist_id}","starred_url":"https://api.github.com/users/dustinfarris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dustinfarris/subscriptions","organizations_url":"https://api.github.com/users/dustinfarris/orgs","repos_url":"https://api.github.com/users/dustinfarris/repos","events_url":"https://api.github.com/users/dustinfarris/events{/privacy}","received_events_url":"https://api.github.com/users/dustinfarris/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T00:39:55Z","updated_at":"2015-03-23T00:39:55Z","body":"I like `responseContent: {'success': true}` for 0.x and `response: { content: {'success': true} }` for 1.0."}}