{"action":"closed","issue":{"url":"https://api.github.com/repos/ansman/validate.js/issues/21","labels_url":"https://api.github.com/repos/ansman/validate.js/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/ansman/validate.js/issues/21/comments","events_url":"https://api.github.com/repos/ansman/validate.js/issues/21/events","html_url":"https://github.com/ansman/validate.js/issues/21","id":55149853,"number":21,"title":"Option 'flatten' is wrongly documented or handled","user":{"login":"fedulovivan","id":752105,"avatar_url":"https://avatars.githubusercontent.com/u/752105?v=3","gravatar_id":"","url":"https://api.github.com/users/fedulovivan","html_url":"https://github.com/fedulovivan","followers_url":"https://api.github.com/users/fedulovivan/followers","following_url":"https://api.github.com/users/fedulovivan/following{/other_user}","gists_url":"https://api.github.com/users/fedulovivan/gists{/gist_id}","starred_url":"https://api.github.com/users/fedulovivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedulovivan/subscriptions","organizations_url":"https://api.github.com/users/fedulovivan/orgs","repos_url":"https://api.github.com/users/fedulovivan/repos","events_url":"https://api.github.com/users/fedulovivan/events{/privacy}","received_events_url":"https://api.github.com/users/fedulovivan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-22T12:54:25Z","updated_at":"2015-02-01T16:30:29Z","closed_at":"2015-02-01T16:30:29Z","body":"On the site it is stated that passing option 'flatten' will make library return flat array instead of nested objects. But actually when this option is enabled an object with numeric keys is returned (which looks like an array but missing length property for example).\r\n``` javascript\r\n// got\r\n{\"0\":\"Message\"}\r\n// instead of expected\r\n[\"Message\"]\r\n```"}}