{"action":"created","issue":{"url":"https://api.github.com/repos/jonschlinkert/rename-keys/issues/4","labels_url":"https://api.github.com/repos/jonschlinkert/rename-keys/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/jonschlinkert/rename-keys/issues/4/comments","events_url":"https://api.github.com/repos/jonschlinkert/rename-keys/issues/4/events","html_url":"https://github.com/jonschlinkert/rename-keys/issues/4","id":47320933,"number":4,"title":"Recursive rename","user":{"login":"emilbayes","id":416524,"avatar_url":"https://avatars.githubusercontent.com/u/416524?v=3","gravatar_id":"","url":"https://api.github.com/users/emilbayes","html_url":"https://github.com/emilbayes","followers_url":"https://api.github.com/users/emilbayes/followers","following_url":"https://api.github.com/users/emilbayes/following{/other_user}","gists_url":"https://api.github.com/users/emilbayes/gists{/gist_id}","starred_url":"https://api.github.com/users/emilbayes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilbayes/subscriptions","organizations_url":"https://api.github.com/users/emilbayes/orgs","repos_url":"https://api.github.com/users/emilbayes/repos","events_url":"https://api.github.com/users/emilbayes/events{/privacy}","received_events_url":"https://api.github.com/users/emilbayes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-10-30T20:12:19Z","updated_at":"2015-01-20T14:46:27Z","closed_at":null,"body":"Care if I submit a PR to add a recursive option?"},"comment":{"url":"https://api.github.com/repos/jonschlinkert/rename-keys/issues/comments/70663803","html_url":"https://github.com/jonschlinkert/rename-keys/issues/4#issuecomment-70663803","issue_url":"https://api.github.com/repos/jonschlinkert/rename-keys/issues/4","id":70663803,"user":{"login":"michaelkariv","id":39742,"avatar_url":"https://avatars.githubusercontent.com/u/39742?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelkariv","html_url":"https://github.com/michaelkariv","followers_url":"https://api.github.com/users/michaelkariv/followers","following_url":"https://api.github.com/users/michaelkariv/following{/other_user}","gists_url":"https://api.github.com/users/michaelkariv/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelkariv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelkariv/subscriptions","organizations_url":"https://api.github.com/users/michaelkariv/orgs","repos_url":"https://api.github.com/users/michaelkariv/repos","events_url":"https://api.github.com/users/michaelkariv/events{/privacy}","received_events_url":"https://api.github.com/users/michaelkariv/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T14:46:27Z","updated_at":"2015-01-20T14:46:27Z","body":"Nope, deep-rename-keys does not work for array-containing objects. Here is the test\r\n\r\nit('should rename nested keys with array.', function () {\r\n    var foo = rename({a: 'b', c: 'd', e: [{c: 'f'}, {c: 'h'}]}, function(key) {\r\n        if (key === 'c') {\r\n            return 'zzz';\r\n        }\r\n        return key;\r\n    });\r\n    assert.deepEqual(foo, {a: 'b', zzz: 'd', e: [{zzz: 'f'}, {zzz: 'h'}]});\r\n});\r\n"}}