{"action":"closed","issue":{"url":"https://api.github.com/repos/ecrmnn/collect.js/issues/138","repository_url":"https://api.github.com/repos/ecrmnn/collect.js","labels_url":"https://api.github.com/repos/ecrmnn/collect.js/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/ecrmnn/collect.js/issues/138/comments","events_url":"https://api.github.com/repos/ecrmnn/collect.js/issues/138/events","html_url":"https://github.com/ecrmnn/collect.js/issues/138","id":272381005,"number":138,"title":".all, toArray, toJSON not returning expected results","user":{"login":"JCWolf","id":4083652,"avatar_url":"https://avatars3.githubusercontent.com/u/4083652?v=4","gravatar_id":"","url":"https://api.github.com/users/JCWolf","html_url":"https://github.com/JCWolf","followers_url":"https://api.github.com/users/JCWolf/followers","following_url":"https://api.github.com/users/JCWolf/following{/other_user}","gists_url":"https://api.github.com/users/JCWolf/gists{/gist_id}","starred_url":"https://api.github.com/users/JCWolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JCWolf/subscriptions","organizations_url":"https://api.github.com/users/JCWolf/orgs","repos_url":"https://api.github.com/users/JCWolf/repos","events_url":"https://api.github.com/users/JCWolf/events{/privacy}","received_events_url":"https://api.github.com/users/JCWolf/received_events","type":"User","site_admin":false},"labels":[{"id":440592020,"url":"https://api.github.com/repos/ecrmnn/collect.js/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-11-08T23:00:29Z","updated_at":"2017-12-12T21:18:11Z","closed_at":"2017-12-12T21:18:11Z","author_association":"NONE","body":"If I use those three methods(.all, toArray, toJSON) on a collection with sub-collections I get the `items` property from children in the result.\r\n\r\nIt shouldn't recursively get the items for each collection?\r\n\r\n_Why I have sub-collections? Because I want, at some point, to process only the data from children and I don't want to create temporary variables and instantiate a new collection()._\r\n\r\n\r\n "}}
{"actor":{"display_login":"ecrmnn"}}