{"action":"created","issue":{"url":"https://api.github.com/repos/bandwidthcom/node-bandwidth-iris/issues/9","repository_url":"https://api.github.com/repos/bandwidthcom/node-bandwidth-iris","labels_url":"https://api.github.com/repos/bandwidthcom/node-bandwidth-iris/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/bandwidthcom/node-bandwidth-iris/issues/9/comments","events_url":"https://api.github.com/repos/bandwidthcom/node-bandwidth-iris/issues/9/events","html_url":"https://github.com/bandwidthcom/node-bandwidth-iris/issues/9","id":185428043,"number":9,"title":"why is `explicitArray` disabled?","user":{"login":"chadxz","id":309219,"avatar_url":"https://avatars.githubusercontent.com/u/309219?v=3","gravatar_id":"","url":"https://api.github.com/users/chadxz","html_url":"https://github.com/chadxz","followers_url":"https://api.github.com/users/chadxz/followers","following_url":"https://api.github.com/users/chadxz/following{/other_user}","gists_url":"https://api.github.com/users/chadxz/gists{/gist_id}","starred_url":"https://api.github.com/users/chadxz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadxz/subscriptions","organizations_url":"https://api.github.com/users/chadxz/orgs","repos_url":"https://api.github.com/users/chadxz/repos","events_url":"https://api.github.com/users/chadxz/events{/privacy}","received_events_url":"https://api.github.com/users/chadxz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-26T15:28:31Z","updated_at":"2016-10-27T02:48:38Z","closed_at":null,"body":"It's counterintuitive that a collection from the xml would sometimes be represented as a single value and sometimes an array in the js. And when the collection is completely empty, the js has a value of 0. Is there some reason it's disabled explicitly in client.js?"},"comment":{"url":"https://api.github.com/repos/bandwidthcom/node-bandwidth-iris/issues/comments/256532860","html_url":"https://github.com/bandwidthcom/node-bandwidth-iris/issues/9#issuecomment-256532860","issue_url":"https://api.github.com/repos/bandwidthcom/node-bandwidth-iris/issues/9","id":256532860,"user":{"login":"chadxz","id":309219,"avatar_url":"https://avatars.githubusercontent.com/u/309219?v=3","gravatar_id":"","url":"https://api.github.com/users/chadxz","html_url":"https://github.com/chadxz","followers_url":"https://api.github.com/users/chadxz/followers","following_url":"https://api.github.com/users/chadxz/following{/other_user}","gists_url":"https://api.github.com/users/chadxz/gists{/gist_id}","starred_url":"https://api.github.com/users/chadxz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadxz/subscriptions","organizations_url":"https://api.github.com/users/chadxz/orgs","repos_url":"https://api.github.com/users/chadxz/repos","events_url":"https://api.github.com/users/chadxz/events{/privacy}","received_events_url":"https://api.github.com/users/chadxz/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T02:48:38Z","updated_at":"2016-10-27T02:48:38Z","body":"So i looked into this a bit more. Disabling the explicitArray property causes the library to build javascript objects from the xml that feel more sane for the case of say, a tag like this: `<someTag>hi i am a value</someTag>` into javascript like `someTag: 'hi i am a value'`. With explicitArray turned on, it would be `someTag: ['hi i am a value']` which is a little annoying. However, for other scenarios, such as for a tag that is meant to hold a list of items, that's exactly what you want. So... idk what the right solution is, but I know the current behavior is funky and probably needs a little love to make it behave more like what one would expect."}}
{"actor":{"display_login":"chadxz"}}