{"action":"created","issue":{"url":"https://api.github.com/repos/pagekit/vue-resource/issues/407","repository_url":"https://api.github.com/repos/pagekit/vue-resource","labels_url":"https://api.github.com/repos/pagekit/vue-resource/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/pagekit/vue-resource/issues/407/comments","events_url":"https://api.github.com/repos/pagekit/vue-resource/issues/407/events","html_url":"https://github.com/pagekit/vue-resource/issues/407","id":177626801,"number":407,"title":"How can i remove the added [] from POST array data?","user":{"login":"savokiss","id":5608189,"avatar_url":"https://avatars.githubusercontent.com/u/5608189?v=3","gravatar_id":"","url":"https://api.github.com/users/savokiss","html_url":"https://github.com/savokiss","followers_url":"https://api.github.com/users/savokiss/followers","following_url":"https://api.github.com/users/savokiss/following{/other_user}","gists_url":"https://api.github.com/users/savokiss/gists{/gist_id}","starred_url":"https://api.github.com/users/savokiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/savokiss/subscriptions","organizations_url":"https://api.github.com/users/savokiss/orgs","repos_url":"https://api.github.com/users/savokiss/repos","events_url":"https://api.github.com/users/savokiss/events{/privacy}","received_events_url":"https://api.github.com/users/savokiss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-18T03:30:02Z","updated_at":"2016-12-15T10:11:41Z","closed_at":null,"body":"Noticed that this line [url/index/serialize function](https://github.com/vuejs/vue-resource/blame/master/src/url/index.js#L116) add the `[]` directly to the array data in the params, but with some backend language like java, it default not support array data with `[]` but with dulplicate names like:\nform data: \n\n```\n//This will not work:\nid: 1,\ngids[]: 123,\ngids[]: 234\n```\n\n```\n//This will work:\nid: 1,\ngids: 123,\ngids: 234\n```\n\nSo how about make `[]` a option to configure just like [ng-file-upload](https://github.com/danialfarid/ng-file-upload#upload-service) using `arrayKey: '[i]' or '[]' or '.i' or '' //default is '[i]'` to adapt to different server implementations ?\n"},"comment":{"url":"https://api.github.com/repos/pagekit/vue-resource/issues/comments/267290423","html_url":"https://github.com/pagekit/vue-resource/issues/407#issuecomment-267290423","issue_url":"https://api.github.com/repos/pagekit/vue-resource/issues/407","id":267290423,"user":{"login":"LancerComet","id":10321350,"avatar_url":"https://avatars.githubusercontent.com/u/10321350?v=3","gravatar_id":"","url":"https://api.github.com/users/LancerComet","html_url":"https://github.com/LancerComet","followers_url":"https://api.github.com/users/LancerComet/followers","following_url":"https://api.github.com/users/LancerComet/following{/other_user}","gists_url":"https://api.github.com/users/LancerComet/gists{/gist_id}","starred_url":"https://api.github.com/users/LancerComet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LancerComet/subscriptions","organizations_url":"https://api.github.com/users/LancerComet/orgs","repos_url":"https://api.github.com/users/LancerComet/repos","events_url":"https://api.github.com/users/LancerComet/events{/privacy}","received_events_url":"https://api.github.com/users/LancerComet/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T10:11:41Z","updated_at":"2016-12-15T10:11:41Z","body":"This confuse me too, did you get any solution for vue-resource ? :("}}
{"actor":{"display_login":"LancerComet"}}