{"action":"created","issue":{"url":"https://api.github.com/repos/koajs/koa/issues/697","repository_url":"https://api.github.com/repos/koajs/koa","labels_url":"https://api.github.com/repos/koajs/koa/issues/697/labels{/name}","comments_url":"https://api.github.com/repos/koajs/koa/issues/697/comments","events_url":"https://api.github.com/repos/koajs/koa/issues/697/events","html_url":"https://github.com/koajs/koa/issues/697","id":143443373,"number":697,"title":"Koa 2 ctx.query ","user":{"login":"liangxingchen","id":13582828,"avatar_url":"https://avatars.githubusercontent.com/u/13582828?v=3","gravatar_id":"","url":"https://api.github.com/users/liangxingchen","html_url":"https://github.com/liangxingchen","followers_url":"https://api.github.com/users/liangxingchen/followers","following_url":"https://api.github.com/users/liangxingchen/following{/other_user}","gists_url":"https://api.github.com/users/liangxingchen/gists{/gist_id}","starred_url":"https://api.github.com/users/liangxingchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liangxingchen/subscriptions","organizations_url":"https://api.github.com/users/liangxingchen/orgs","repos_url":"https://api.github.com/users/liangxingchen/repos","events_url":"https://api.github.com/users/liangxingchen/events{/privacy}","received_events_url":"https://api.github.com/users/liangxingchen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-25T07:14:52Z","updated_at":"2016-03-26T09:17:33Z","closed_at":null,"body":"\r\n```javascript\r\n// When GET /path?a[b]=c\r\n// I think `ctx.query ` should be:\r\n{\r\n   a:{\r\n      b:'c'\r\n   }\r\n}\r\n// But it is\r\n{\r\n   'a[b]':c\r\n}\r\n\r\n// Is this a bug?\r\n\r\n// if it is, I think\r\n// koa/lib/request.js line 11\r\nconst qs = require('querystring');\r\n// should replaced by\r\nconst qs = require('qs');\r\n```"},"comment":{"url":"https://api.github.com/repos/koajs/koa/issues/comments/201742800","html_url":"https://github.com/koajs/koa/issues/697#issuecomment-201742800","issue_url":"https://api.github.com/repos/koajs/koa/issues/697","id":201742800,"user":{"login":"fl0w","id":71882,"avatar_url":"https://avatars.githubusercontent.com/u/71882?v=3","gravatar_id":"","url":"https://api.github.com/users/fl0w","html_url":"https://github.com/fl0w","followers_url":"https://api.github.com/users/fl0w/followers","following_url":"https://api.github.com/users/fl0w/following{/other_user}","gists_url":"https://api.github.com/users/fl0w/gists{/gist_id}","starred_url":"https://api.github.com/users/fl0w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fl0w/subscriptions","organizations_url":"https://api.github.com/users/fl0w/orgs","repos_url":"https://api.github.com/users/fl0w/repos","events_url":"https://api.github.com/users/fl0w/events{/privacy}","received_events_url":"https://api.github.com/users/fl0w/received_events","type":"User","site_admin":false},"created_at":"2016-03-26T09:17:33Z","updated_at":"2016-03-26T09:17:33Z","body":"If my memory serves me correctly - this is simple by design.\r\nComplexities such as depth can be solved in user land, which as you pointed out: `qs` has done."}}