{"action":"created","issue":{"url":"https://api.github.com/repos/request/request/issues/1550","labels_url":"https://api.github.com/repos/request/request/issues/1550/labels{/name}","comments_url":"https://api.github.com/repos/request/request/issues/1550/comments","events_url":"https://api.github.com/repos/request/request/issues/1550/events","html_url":"https://github.com/request/request/issues/1550","id":69965673,"number":1550,"title":"Array is sent as object?","user":{"login":"irfaan","id":1435018,"avatar_url":"https://avatars.githubusercontent.com/u/1435018?v=3","gravatar_id":"","url":"https://api.github.com/users/irfaan","html_url":"https://github.com/irfaan","followers_url":"https://api.github.com/users/irfaan/followers","following_url":"https://api.github.com/users/irfaan/following{/other_user}","gists_url":"https://api.github.com/users/irfaan/gists{/gist_id}","starred_url":"https://api.github.com/users/irfaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irfaan/subscriptions","organizations_url":"https://api.github.com/users/irfaan/orgs","repos_url":"https://api.github.com/users/irfaan/repos","events_url":"https://api.github.com/users/irfaan/events{/privacy}","received_events_url":"https://api.github.com/users/irfaan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-21T22:18:01Z","updated_at":"2015-04-22T19:04:54Z","closed_at":null,"body":"Not entirely sure that this is the fault of the request module, but it has been suggested that request is passing an array ```['some_state']``` (as an object parameter's value) to an object itself ```{\\\"0\\\":\\\"some_state\\\"}```.\r\n\r\nRelevant discussion: https://github.com/wit-ai/node-wit/issues/7\r\nRelevant code:\r\n```js\r\n// Params\r\n    var options = {\r\n        context: {\r\n            state: ['some_state']\r\n        }\r\n    }\r\n\r\n    var query_params = _.extend({'q': text}, options);\r\n\r\n// Request options\r\n    var request_options = {\r\n        url: 'https://api.wit.ai/message',\r\n        qs: query_params,\r\n        json: true,\r\n        headers: getHeaders(access_token)\r\n    };\r\n\r\n// Make the request\r\n    request(request_options, function (error, response, body) {\r\n        if (response && response.statusCode != 200) {\r\n            error = \"Invalid response received from server: \" + response.statusCode\r\n        }\r\n        callback(error, body);\r\n    });\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/request/request/issues/comments/95306104","html_url":"https://github.com/request/request/issues/1550#issuecomment-95306104","issue_url":"https://api.github.com/repos/request/request/issues/1550","id":95306104,"user":{"login":"irfaan","id":1435018,"avatar_url":"https://avatars.githubusercontent.com/u/1435018?v=3","gravatar_id":"","url":"https://api.github.com/users/irfaan","html_url":"https://github.com/irfaan","followers_url":"https://api.github.com/users/irfaan/followers","following_url":"https://api.github.com/users/irfaan/following{/other_user}","gists_url":"https://api.github.com/users/irfaan/gists{/gist_id}","starred_url":"https://api.github.com/users/irfaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irfaan/subscriptions","organizations_url":"https://api.github.com/users/irfaan/orgs","repos_url":"https://api.github.com/users/irfaan/repos","events_url":"https://api.github.com/users/irfaan/events{/privacy}","received_events_url":"https://api.github.com/users/irfaan/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T19:04:54Z","updated_at":"2015-04-22T19:04:54Z","body":"@simov yes, I have (despite request defaulting to indices). Still no luck. Is there somewhere in request.js that I can check what is being sent?"}}