{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/fetch/issues/47","labels_url":"https://api.github.com/repos/whatwg/fetch/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/fetch/issues/47/comments","events_url":"https://api.github.com/repos/whatwg/fetch/issues/47/events","html_url":"https://github.com/whatwg/fetch/issues/47","id":73478910,"number":47,"title":"Automatically set request's \"Content-Type\" to \"application/json\" for POJOs","user":{"login":"appsforartists","id":926648,"avatar_url":"https://avatars.githubusercontent.com/u/926648?v=3","gravatar_id":"","url":"https://api.github.com/users/appsforartists","html_url":"https://github.com/appsforartists","followers_url":"https://api.github.com/users/appsforartists/followers","following_url":"https://api.github.com/users/appsforartists/following{/other_user}","gists_url":"https://api.github.com/users/appsforartists/gists{/gist_id}","starred_url":"https://api.github.com/users/appsforartists/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appsforartists/subscriptions","organizations_url":"https://api.github.com/users/appsforartists/orgs","repos_url":"https://api.github.com/users/appsforartists/repos","events_url":"https://api.github.com/users/appsforartists/events{/privacy}","received_events_url":"https://api.github.com/users/appsforartists/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-06T01:06:58Z","updated_at":"2015-05-06T07:31:17Z","closed_at":null,"body":"As I read the [Body Mixins](https://fetch.spec.whatwg.org/#body-mixin) section, `options.body` can be introspected for certain types, which will cause the `Content-Type` header to be set appropriately.\r\n\r\nCan we have it check for plain-ol'-JS-objects (or any other stringifyable type), run `JSON.stringify(options.body`), and set `options.headers[\"Content-Type\"] = \"application/json\"`?"},"comment":{"url":"https://api.github.com/repos/whatwg/fetch/issues/comments/99354801","html_url":"https://github.com/whatwg/fetch/issues/47#issuecomment-99354801","issue_url":"https://api.github.com/repos/whatwg/fetch/issues/47","id":99354801,"user":{"login":"domenic","id":617481,"avatar_url":"https://avatars.githubusercontent.com/u/617481?v=3","gravatar_id":"","url":"https://api.github.com/users/domenic","html_url":"https://github.com/domenic","followers_url":"https://api.github.com/users/domenic/followers","following_url":"https://api.github.com/users/domenic/following{/other_user}","gists_url":"https://api.github.com/users/domenic/gists{/gist_id}","starred_url":"https://api.github.com/users/domenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenic/subscriptions","organizations_url":"https://api.github.com/users/domenic/orgs","repos_url":"https://api.github.com/users/domenic/repos","events_url":"https://api.github.com/users/domenic/events{/privacy}","received_events_url":"https://api.github.com/users/domenic/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T07:31:17Z","updated_at":"2015-05-06T07:31:17Z","body":"The usual way, with `headers: { \"Content-Type\": \"application/json+myapimimetype\" }`"}}