{"action":"created","issue":{"url":"https://api.github.com/repos/JulianBirch/cljs-ajax/issues/120","repository_url":"https://api.github.com/repos/JulianBirch/cljs-ajax","labels_url":"https://api.github.com/repos/JulianBirch/cljs-ajax/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/JulianBirch/cljs-ajax/issues/120/comments","events_url":"https://api.github.com/repos/JulianBirch/cljs-ajax/issues/120/events","html_url":"https://github.com/JulianBirch/cljs-ajax/issues/120","id":125640994,"number":120,"title":"Params serialization to querystring","user":{"login":"hugobessaa","id":4073936,"avatar_url":"https://avatars.githubusercontent.com/u/4073936?v=3","gravatar_id":"","url":"https://api.github.com/users/hugobessaa","html_url":"https://github.com/hugobessaa","followers_url":"https://api.github.com/users/hugobessaa/followers","following_url":"https://api.github.com/users/hugobessaa/following{/other_user}","gists_url":"https://api.github.com/users/hugobessaa/gists{/gist_id}","starred_url":"https://api.github.com/users/hugobessaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugobessaa/subscriptions","organizations_url":"https://api.github.com/users/hugobessaa/orgs","repos_url":"https://api.github.com/users/hugobessaa/repos","events_url":"https://api.github.com/users/hugobessaa/events{/privacy}","received_events_url":"https://api.github.com/users/hugobessaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-01-08T16:12:42Z","updated_at":"2016-05-05T14:40:29Z","closed_at":null,"body":"Hey :smile: \r\n\r\nI'm using `cljs-ajax` to send GET requests with some params. When `cljs-ajax` serializes sequential data it looks like this:\r\n\r\n```cljs\r\n{:filter [1 2 3]}\r\n;; ?filter[0]=1&filter[1]=2&filter[2]=3\r\n```\r\n\r\nMy API is being served via [Phoenix](http://phoenixframework.org/) and it reads the sequential data in this query string as a hashmap.\r\n\r\n```elixir\r\n%{:filter => %{\"0\" => \"1\", \"1\" => \"2\", \"2\" => 3}}\r\n```\r\n\r\nI know it isn't `cljs-ajax` job to conform to each frameworks query string parsing implementation, but I took a look at how other ajax libs transform their data into query strings and they do one of:\r\n\r\n```javascript\r\n// jQuery\r\n$.param({filter: [1,2,3]}); \r\n// filter[]=1&filter[]=2&filter[]=3\r\n\r\n// superagent\r\nsuperagent.url('/').query({filter: [1,2,3]}).end() \r\n// will request \"/?filter=1&filter=2&filter=3\r\n```\r\n\r\nWith the jQuery approach, Phoenix parses query strings as expected.\r\n\r\nShould `cljs-ajax` give users the opportunity to change the way it serializes query strings, with default options? \r\n\r\nThe only way I see to change this is to not use the `:params` options and serializing it my self and append to the url.\r\n\r\nThanks in advance :)"},"comment":{"url":"https://api.github.com/repos/JulianBirch/cljs-ajax/issues/comments/217171998","html_url":"https://github.com/JulianBirch/cljs-ajax/issues/120#issuecomment-217171998","issue_url":"https://api.github.com/repos/JulianBirch/cljs-ajax/issues/120","id":217171998,"user":{"login":"hugobessaa","id":4073936,"avatar_url":"https://avatars.githubusercontent.com/u/4073936?v=3","gravatar_id":"","url":"https://api.github.com/users/hugobessaa","html_url":"https://github.com/hugobessaa","followers_url":"https://api.github.com/users/hugobessaa/followers","following_url":"https://api.github.com/users/hugobessaa/following{/other_user}","gists_url":"https://api.github.com/users/hugobessaa/gists{/gist_id}","starred_url":"https://api.github.com/users/hugobessaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugobessaa/subscriptions","organizations_url":"https://api.github.com/users/hugobessaa/orgs","repos_url":"https://api.github.com/users/hugobessaa/repos","events_url":"https://api.github.com/users/hugobessaa/events{/privacy}","received_events_url":"https://api.github.com/users/hugobessaa/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T14:40:29Z","updated_at":"2016-05-05T14:40:29Z","body":"```javascript\r\n// superagent\r\nsuperagent.url('/').query({filter: [1,2,3]}).end() \r\n// will request \"/?filter=1&filter=2&filter=3\r\n```"}}