{"action":"created","issue":{"url":"https://api.github.com/repos/pyrsmk/qwest/issues/59","labels_url":"https://api.github.com/repos/pyrsmk/qwest/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/pyrsmk/qwest/issues/59/comments","events_url":"https://api.github.com/repos/pyrsmk/qwest/issues/59/events","html_url":"https://github.com/pyrsmk/qwest/pull/59","id":78467406,"number":59,"title":"Use jQuery's param implementation to build data params ","user":{"login":"hulufei","id":261677,"avatar_url":"https://avatars.githubusercontent.com/u/261677?v=3","gravatar_id":"","url":"https://api.github.com/users/hulufei","html_url":"https://github.com/hulufei","followers_url":"https://api.github.com/users/hulufei/followers","following_url":"https://api.github.com/users/hulufei/following{/other_user}","gists_url":"https://api.github.com/users/hulufei/gists{/gist_id}","starred_url":"https://api.github.com/users/hulufei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hulufei/subscriptions","organizations_url":"https://api.github.com/users/hulufei/orgs","repos_url":"https://api.github.com/users/hulufei/repos","events_url":"https://api.github.com/users/hulufei/events{/privacy}","received_events_url":"https://api.github.com/users/hulufei/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pyrsmk/qwest/labels/2.0","name":"2.0","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-20T10:26:34Z","updated_at":"2015-07-08T13:40:48Z","closed_at":"2015-06-03T12:37:31Z","pull_request":{"url":"https://api.github.com/repos/pyrsmk/qwest/pulls/59","html_url":"https://github.com/pyrsmk/qwest/pull/59","diff_url":"https://github.com/pyrsmk/qwest/pull/59.diff","patch_url":"https://github.com/pyrsmk/qwest/pull/59.patch"},"body":"Hi, currently qwest have some issues when serialize array data, I found it's better to use jQuery's param function to build data params, and someone have just extracted an individual module [jquery-param](https://github.com/knowledgecode/jquery-param), which is nice.\r\n\r\nI don't know what's the best way to require additional modules, we need package for minified version, this PR works fine for webpack (and also browserify I guess)."},"comment":{"url":"https://api.github.com/repos/pyrsmk/qwest/issues/comments/119582388","html_url":"https://github.com/pyrsmk/qwest/pull/59#issuecomment-119582388","issue_url":"https://api.github.com/repos/pyrsmk/qwest/issues/59","id":119582388,"user":{"login":"message","id":492026,"avatar_url":"https://avatars.githubusercontent.com/u/492026?v=3","gravatar_id":"","url":"https://api.github.com/users/message","html_url":"https://github.com/message","followers_url":"https://api.github.com/users/message/followers","following_url":"https://api.github.com/users/message/following{/other_user}","gists_url":"https://api.github.com/users/message/gists{/gist_id}","starred_url":"https://api.github.com/users/message/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/message/subscriptions","organizations_url":"https://api.github.com/users/message/orgs","repos_url":"https://api.github.com/users/message/repos","events_url":"https://api.github.com/users/message/events{/privacy}","received_events_url":"https://api.github.com/users/message/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T13:40:48Z","updated_at":"2015-07-08T13:40:48Z","body":"@pyrsmk this is an issue for me now too. Java recognizes parameter bag as `param=value1&param=value2` and there is no way to specify that in qwest\r\n\r\n```java\r\n@POST\r\n@Consumes(MediaType.APPLICATION_FORM_URLENCODED)\r\npublic Response createAdminUser(@FormParam(\"parameters\") List<String> permissions)\r\n{\r\n\treturn Response.status(Response.Status.BAD_REQUEST).entity(\"\").build();\r\n}\r\n```\r\n\r\n```\r\nPOST /api/v1/administrators HTTP/1.1\r\nAccept: application/json\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\nparameters=first_parameter&parameters=second_parameter\r\n```\r\n![screen shot 2015-07-08 at 16 39 56](https://cloud.githubusercontent.com/assets/492026/8571522/0bfc8ba2-2590-11e5-8b3a-f1027b25da8d.png)\r\n"}}