{"action":"created","issue":{"url":"https://api.github.com/repos/rest-client/rest-client/issues/416","labels_url":"https://api.github.com/repos/rest-client/rest-client/issues/416/labels{/name}","comments_url":"https://api.github.com/repos/rest-client/rest-client/issues/416/comments","events_url":"https://api.github.com/repos/rest-client/rest-client/issues/416/events","html_url":"https://github.com/rest-client/rest-client/issues/416","id":102053289,"number":416,"title":"Empty array is removed from the request","user":{"login":"jwmay2012","id":7596383,"avatar_url":"https://avatars.githubusercontent.com/u/7596383?v=3","gravatar_id":"","url":"https://api.github.com/users/jwmay2012","html_url":"https://github.com/jwmay2012","followers_url":"https://api.github.com/users/jwmay2012/followers","following_url":"https://api.github.com/users/jwmay2012/following{/other_user}","gists_url":"https://api.github.com/users/jwmay2012/gists{/gist_id}","starred_url":"https://api.github.com/users/jwmay2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwmay2012/subscriptions","organizations_url":"https://api.github.com/users/jwmay2012/orgs","repos_url":"https://api.github.com/users/jwmay2012/repos","events_url":"https://api.github.com/users/jwmay2012/events{/privacy}","received_events_url":"https://api.github.com/users/jwmay2012/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-20T03:42:01Z","updated_at":"2015-12-16T22:19:57Z","closed_at":"2015-11-08T08:12:26Z","body":"I'm doing a PATCH request with an object like this:\r\n\r\n`{ name: 'asdf', things:[] }`\r\n\r\nThe recipient of the request sees no 'things' key, just `{ name: 'asdf' }`. Why is the empty array being removed from the request and how can I get RestClient to send it?"},"comment":{"url":"https://api.github.com/repos/rest-client/rest-client/issues/comments/165271369","html_url":"https://github.com/rest-client/rest-client/issues/416#issuecomment-165271369","issue_url":"https://api.github.com/repos/rest-client/rest-client/issues/416","id":165271369,"user":{"login":"ab","id":350770,"avatar_url":"https://avatars.githubusercontent.com/u/350770?v=3","gravatar_id":"","url":"https://api.github.com/users/ab","html_url":"https://github.com/ab","followers_url":"https://api.github.com/users/ab/followers","following_url":"https://api.github.com/users/ab/following{/other_user}","gists_url":"https://api.github.com/users/ab/gists{/gist_id}","starred_url":"https://api.github.com/users/ab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ab/subscriptions","organizations_url":"https://api.github.com/users/ab/orgs","repos_url":"https://api.github.com/users/ab/repos","events_url":"https://api.github.com/users/ab/events{/privacy}","received_events_url":"https://api.github.com/users/ab/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T22:19:57Z","updated_at":"2015-12-16T22:19:57Z","body":"There's still no way to represent empty containers, but I'm going to try rendering them as null/nil instead. In #437 I'm working on including empty arrays and empty hashes as keys with no value (which is usually interpreted as null/nil). This is rather non-standard, but it seems to work relatively well with the servers I've tested.\r\n\r\nSo `{foo: 1, bar: [], baz: 3}` yields `foo=1&bar&baz`"}}