{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/got/issues/600","repository_url":"https://api.github.com/repos/sindresorhus/got","labels_url":"https://api.github.com/repos/sindresorhus/got/issues/600/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/got/issues/600/comments","events_url":"https://api.github.com/repos/sindresorhus/got/issues/600/events","html_url":"https://github.com/sindresorhus/got/issues/600","id":356553651,"node_id":"MDU6SXNzdWUzNTY1NTM2NTE=","number":600,"title":"Simultaneous use of option json with body as FormData","user":{"login":"tolec","id":12409449,"node_id":"MDQ6VXNlcjEyNDA5NDQ5","avatar_url":"https://avatars3.githubusercontent.com/u/12409449?v=4","gravatar_id":"","url":"https://api.github.com/users/tolec","html_url":"https://github.com/tolec","followers_url":"https://api.github.com/users/tolec/followers","following_url":"https://api.github.com/users/tolec/following{/other_user}","gists_url":"https://api.github.com/users/tolec/gists{/gist_id}","starred_url":"https://api.github.com/users/tolec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tolec/subscriptions","organizations_url":"https://api.github.com/users/tolec/orgs","repos_url":"https://api.github.com/users/tolec/repos","events_url":"https://api.github.com/users/tolec/events{/privacy}","received_events_url":"https://api.github.com/users/tolec/received_events","type":"User","site_admin":false},"labels":[{"id":88753460,"node_id":"MDU6TGFiZWw4ODc1MzQ2MA==","url":"https://api.github.com/repos/sindresorhus/got/labels/duplicate","name":"duplicate","color":"cccccc","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-03T15:59:27Z","updated_at":"2018-09-03T16:59:51Z","closed_at":"2018-09-03T16:03:25Z","author_association":"NONE","body":"Seems that `json` option is responsible simultaneously for sending and parsing.\r\n\r\nWhen `json` is set to true, the response will be parsed as json. Ok. However, in case if I want to send FormData and at the same time I want to receive response data as json, it will fail [here](https://github.com/sindresorhus/got/blob/5f191b90e189acb8e2f721d676775ab667532251/source/normalize-arguments.js#L141) – because it checks that if I enable `json` option then it requires the `body` option to be an Object or Array.\r\n"},"comment":{"url":"https://api.github.com/repos/sindresorhus/got/issues/comments/418161982","html_url":"https://github.com/sindresorhus/got/issues/600#issuecomment-418161982","issue_url":"https://api.github.com/repos/sindresorhus/got/issues/600","id":418161982,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODE2MTk4Mg==","user":{"login":"szmarczak","id":36894700,"node_id":"MDQ6VXNlcjM2ODk0NzAw","avatar_url":"https://avatars0.githubusercontent.com/u/36894700?v=4","gravatar_id":"","url":"https://api.github.com/users/szmarczak","html_url":"https://github.com/szmarczak","followers_url":"https://api.github.com/users/szmarczak/followers","following_url":"https://api.github.com/users/szmarczak/following{/other_user}","gists_url":"https://api.github.com/users/szmarczak/gists{/gist_id}","starred_url":"https://api.github.com/users/szmarczak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szmarczak/subscriptions","organizations_url":"https://api.github.com/users/szmarczak/orgs","repos_url":"https://api.github.com/users/szmarczak/repos","events_url":"https://api.github.com/users/szmarczak/events{/privacy}","received_events_url":"https://api.github.com/users/szmarczak/received_events","type":"User","site_admin":false},"created_at":"2018-09-03T16:59:51Z","updated_at":"2018-09-03T16:59:51Z","author_association":"COLLABORATOR","body":"Yup."}}
{"actor":{"display_login":"szmarczak"}}