{"action":"created","issue":{"url":"https://api.github.com/repos/ljharb/qs/issues/107","repository_url":"https://api.github.com/repos/ljharb/qs","labels_url":"https://api.github.com/repos/ljharb/qs/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/ljharb/qs/issues/107/comments","events_url":"https://api.github.com/repos/ljharb/qs/issues/107/events","html_url":"https://github.com/ljharb/qs/issues/107","id":99677973,"number":107,"title":"Array parsed as Object","user":{"login":"yanickrochon","id":78461,"avatar_url":"https://avatars.githubusercontent.com/u/78461?v=3","gravatar_id":"","url":"https://api.github.com/users/yanickrochon","html_url":"https://github.com/yanickrochon","followers_url":"https://api.github.com/users/yanickrochon/followers","following_url":"https://api.github.com/users/yanickrochon/following{/other_user}","gists_url":"https://api.github.com/users/yanickrochon/gists{/gist_id}","starred_url":"https://api.github.com/users/yanickrochon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanickrochon/subscriptions","organizations_url":"https://api.github.com/users/yanickrochon/orgs","repos_url":"https://api.github.com/users/yanickrochon/repos","events_url":"https://api.github.com/users/yanickrochon/events{/privacy}","received_events_url":"https://api.github.com/users/yanickrochon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2015-08-07T16:00:03Z","updated_at":"2016-07-16T02:39:33Z","closed_at":null,"body":"Here are two tests :\r\n\r\n```\r\nvar req = 'items[20][id]=1';\r\n\r\nconsole.log(JSON.stringify(Qs.parse(req), null, 2));\r\n// {\r\n//   \"items\": [\r\n//     {\r\n//       \"id\": \"1\"\r\n//     }\r\n//   ]\r\n// }\r\n```\r\n\r\n```\r\nvar req = 'items[21][id]=1';\r\n\r\nconsole.log(JSON.stringify(Qs.parse(req), null, 2));\r\n// {\r\n//   \"items\": {\r\n//     \"21\": {\r\n//       \"id\": \"1\"\r\n//     }\r\n//   }\r\n// }\r\n```\r\n\r\n... why?"},"comment":{"url":"https://api.github.com/repos/ljharb/qs/issues/comments/233104011","html_url":"https://github.com/ljharb/qs/issues/107#issuecomment-233104011","issue_url":"https://api.github.com/repos/ljharb/qs/issues/107","id":233104011,"user":{"login":"yanickrochon","id":78461,"avatar_url":"https://avatars.githubusercontent.com/u/78461?v=3","gravatar_id":"","url":"https://api.github.com/users/yanickrochon","html_url":"https://github.com/yanickrochon","followers_url":"https://api.github.com/users/yanickrochon/followers","following_url":"https://api.github.com/users/yanickrochon/following{/other_user}","gists_url":"https://api.github.com/users/yanickrochon/gists{/gist_id}","starred_url":"https://api.github.com/users/yanickrochon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanickrochon/subscriptions","organizations_url":"https://api.github.com/users/yanickrochon/orgs","repos_url":"https://api.github.com/users/yanickrochon/repos","events_url":"https://api.github.com/users/yanickrochon/events{/privacy}","received_events_url":"https://api.github.com/users/yanickrochon/received_events","type":"User","site_admin":false},"created_at":"2016-07-16T02:39:33Z","updated_at":"2016-07-16T02:39:33Z","body":"And that `foo[bar]=LOL&foo[2]=bleh` would have `foo[2] = 'bleh';` anyway. Exactly."}}
{"actor":{"display_login":"yanickrochon"}}