{"action":"opened","issue":{"url":"https://api.github.com/repos/sindresorhus/camelcase-keys/issues/13","repository_url":"https://api.github.com/repos/sindresorhus/camelcase-keys","labels_url":"https://api.github.com/repos/sindresorhus/camelcase-keys/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/camelcase-keys/issues/13/comments","events_url":"https://api.github.com/repos/sindresorhus/camelcase-keys/issues/13/events","html_url":"https://github.com/sindresorhus/camelcase-keys/issues/13","id":223890493,"number":13,"title":"Weird behaviour with array of objects as input","user":{"login":"dhautotlf","id":16540298,"avatar_url":"https://avatars3.githubusercontent.com/u/16540298?v=3","gravatar_id":"","url":"https://api.github.com/users/dhautotlf","html_url":"https://github.com/dhautotlf","followers_url":"https://api.github.com/users/dhautotlf/followers","following_url":"https://api.github.com/users/dhautotlf/following{/other_user}","gists_url":"https://api.github.com/users/dhautotlf/gists{/gist_id}","starred_url":"https://api.github.com/users/dhautotlf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhautotlf/subscriptions","organizations_url":"https://api.github.com/users/dhautotlf/orgs","repos_url":"https://api.github.com/users/dhautotlf/repos","events_url":"https://api.github.com/users/dhautotlf/events{/privacy}","received_events_url":"https://api.github.com/users/dhautotlf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-24T17:13:32Z","updated_at":"2017-04-24T17:13:32Z","closed_at":null,"body":"```\r\ncamelcaseKeys([{'foo-bar': true}], {deep:true})\r\n```\r\ngives\r\n```\r\n{\r\n    0: {\r\n        fooBar: true\r\n    }\r\n}\r\n```\r\nI was expecting \r\n```\r\n[\r\n    {\r\n        fooBar: true\r\n    }\r\n]\r\n```\r\nSince\r\n```\r\ncamelcaseKeys({'test': [{'foo-bar': [{'foo-baz': true}]}]}, {deep:true});\r\n```\r\nGives\r\n```\r\n{\r\n    test: [\r\n        {\r\n            fooBar: [{ fooBaz }]\r\n        }\r\n    ]\r\n}\r\n```"}}
{"actor":{"display_login":"dhautotlf"}}