{"action":"created","issue":{"url":"https://api.github.com/repos/mitsuhiko/flask/issues/1408","labels_url":"https://api.github.com/repos/mitsuhiko/flask/issues/1408/labels{/name}","comments_url":"https://api.github.com/repos/mitsuhiko/flask/issues/1408/comments","events_url":"https://api.github.com/repos/mitsuhiko/flask/issues/1408/events","html_url":"https://github.com/mitsuhiko/flask/pull/1408","id":65099648,"number":1408,"title":"JSON support for the Flask test client","user":{"login":"adambyrtek","id":8214,"avatar_url":"https://avatars.githubusercontent.com/u/8214?v=3","gravatar_id":"","url":"https://api.github.com/users/adambyrtek","html_url":"https://github.com/adambyrtek","followers_url":"https://api.github.com/users/adambyrtek/followers","following_url":"https://api.github.com/users/adambyrtek/following{/other_user}","gists_url":"https://api.github.com/users/adambyrtek/gists{/gist_id}","starred_url":"https://api.github.com/users/adambyrtek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adambyrtek/subscriptions","organizations_url":"https://api.github.com/users/adambyrtek/orgs","repos_url":"https://api.github.com/users/adambyrtek/repos","events_url":"https://api.github.com/users/adambyrtek/events{/privacy}","received_events_url":"https://api.github.com/users/adambyrtek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitsuhiko/flask/labels/needs%20review","name":"needs review","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-29T21:42:52Z","updated_at":"2015-04-01T23:42:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mitsuhiko/flask/pulls/1408","html_url":"https://github.com/mitsuhiko/flask/pull/1408","diff_url":"https://github.com/mitsuhiko/flask/pull/1408.diff","patch_url":"https://github.com/mitsuhiko/flask/pull/1408.patch"},"body":"This change adds support for JSON requests to the Flask test client, which makes testing JSON APIs much more convenient, and makes the arguments consistent with `request.data` and `request.json`.\r\n\r\nBefore:\r\n```response = client.post('/url', data=json.dumps(json_data), content_type='application/json')```\r\n\r\nAfter:\r\n```response = client.post('/url', json=json_data})```\r\n\r\nIf this gets merged then I have another change to support `response.json`, which would make it easier to make assertions on JSON responses."},"comment":{"url":"https://api.github.com/repos/mitsuhiko/flask/issues/comments/88664617","html_url":"https://github.com/mitsuhiko/flask/pull/1408#issuecomment-88664617","issue_url":"https://api.github.com/repos/mitsuhiko/flask/issues/1408","id":88664617,"user":{"login":"untitaker","id":837573,"avatar_url":"https://avatars.githubusercontent.com/u/837573?v=3","gravatar_id":"","url":"https://api.github.com/users/untitaker","html_url":"https://github.com/untitaker","followers_url":"https://api.github.com/users/untitaker/followers","following_url":"https://api.github.com/users/untitaker/following{/other_user}","gists_url":"https://api.github.com/users/untitaker/gists{/gist_id}","starred_url":"https://api.github.com/users/untitaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/untitaker/subscriptions","organizations_url":"https://api.github.com/users/untitaker/orgs","repos_url":"https://api.github.com/users/untitaker/repos","events_url":"https://api.github.com/users/untitaker/events{/privacy}","received_events_url":"https://api.github.com/users/untitaker/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T23:42:03Z","updated_at":"2015-04-01T23:42:03Z","body":"Ahh, I see."}}