{"action":"created","issue":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/1265","repository_url":"https://api.github.com/repos/Alamofire/Alamofire","labels_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/1265/labels{/name}","comments_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/1265/comments","events_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/1265/events","html_url":"https://github.com/Alamofire/Alamofire/issues/1265","id":156298390,"number":1265,"title":"lack of array indexes, possible cause of server parse error","user":{"login":"timersha","id":6690950,"avatar_url":"https://avatars.githubusercontent.com/u/6690950?v=3","gravatar_id":"","url":"https://api.github.com/users/timersha","html_url":"https://github.com/timersha","followers_url":"https://api.github.com/users/timersha/followers","following_url":"https://api.github.com/users/timersha/following{/other_user}","gists_url":"https://api.github.com/users/timersha/gists{/gist_id}","starred_url":"https://api.github.com/users/timersha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timersha/subscriptions","organizations_url":"https://api.github.com/users/timersha/orgs","repos_url":"https://api.github.com/users/timersha/repos","events_url":"https://api.github.com/users/timersha/events{/privacy}","received_events_url":"https://api.github.com/users/timersha/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Alamofire/Alamofire/labels/support","name":"support","color":"FC6808"}],"state":"closed","locked":false,"assignee":{"login":"cnoon","id":169110,"avatar_url":"https://avatars.githubusercontent.com/u/169110?v=3","gravatar_id":"","url":"https://api.github.com/users/cnoon","html_url":"https://github.com/cnoon","followers_url":"https://api.github.com/users/cnoon/followers","following_url":"https://api.github.com/users/cnoon/following{/other_user}","gists_url":"https://api.github.com/users/cnoon/gists{/gist_id}","starred_url":"https://api.github.com/users/cnoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnoon/subscriptions","organizations_url":"https://api.github.com/users/cnoon/orgs","repos_url":"https://api.github.com/users/cnoon/repos","events_url":"https://api.github.com/users/cnoon/events{/privacy}","received_events_url":"https://api.github.com/users/cnoon/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-05-23T14:48:56Z","updated_at":"2016-06-02T10:20:28Z","closed_at":"2016-05-25T04:52:11Z","body":"Some requests always failed, and after debugging requests with backend developer, we found lack of indexes of objects in array parameter. I'm not sure is it error or not.\r\nParametersEncoding.swift, line: 192-194, after adding 'index' requests succeeded:\r\n for (index,value) in array.enumerate() {\r\n                components += queryComponents(\"\\(key)[\\(index)]\", value)\r\n            }\r\n"},"comment":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/comments/223252541","html_url":"https://github.com/Alamofire/Alamofire/issues/1265#issuecomment-223252541","issue_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/1265","id":223252541,"user":{"login":"SASDOE","id":3678587,"avatar_url":"https://avatars.githubusercontent.com/u/3678587?v=3","gravatar_id":"","url":"https://api.github.com/users/SASDOE","html_url":"https://github.com/SASDOE","followers_url":"https://api.github.com/users/SASDOE/followers","following_url":"https://api.github.com/users/SASDOE/following{/other_user}","gists_url":"https://api.github.com/users/SASDOE/gists{/gist_id}","starred_url":"https://api.github.com/users/SASDOE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SASDOE/subscriptions","organizations_url":"https://api.github.com/users/SASDOE/orgs","repos_url":"https://api.github.com/users/SASDOE/repos","events_url":"https://api.github.com/users/SASDOE/events{/privacy}","received_events_url":"https://api.github.com/users/SASDOE/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T10:20:28Z","updated_at":"2016-06-02T10:20:28Z","body":"I might add that there is an easier solution (workaround is probably the more appropriate wording): rather than having an array, use a `NSMutableDictionnary` and set your indices as the key. Since you can nest dictionnaries this shouldn't be an issue and avoids the need to write a custom `ParameterEncoding`."}}
{"actor":{"display_login":"SASDOE"}}