{"action":"created","issue":{"url":"https://api.github.com/repos/luin/express-promise/issues/15","labels_url":"https://api.github.com/repos/luin/express-promise/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/luin/express-promise/issues/15/comments","events_url":"https://api.github.com/repos/luin/express-promise/issues/15/events","html_url":"https://github.com/luin/express-promise/pull/15","id":109807129,"number":15,"title":"Added posibility to skip toJSON and then filter objects by user own function","user":{"login":"semoro","id":1918780,"avatar_url":"https://avatars.githubusercontent.com/u/1918780?v=3","gravatar_id":"","url":"https://api.github.com/users/semoro","html_url":"https://github.com/semoro","followers_url":"https://api.github.com/users/semoro/followers","following_url":"https://api.github.com/users/semoro/following{/other_user}","gists_url":"https://api.github.com/users/semoro/gists{/gist_id}","starred_url":"https://api.github.com/users/semoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semoro/subscriptions","organizations_url":"https://api.github.com/users/semoro/orgs","repos_url":"https://api.github.com/users/semoro/repos","events_url":"https://api.github.com/users/semoro/events{/privacy}","received_events_url":"https://api.github.com/users/semoro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-05T14:22:55Z","updated_at":"2015-10-05T15:00:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/luin/express-promise/pulls/15","html_url":"https://github.com/luin/express-promise/pull/15","diff_url":"https://github.com/luin/express-promise/pull/15.diff","patch_url":"https://github.com/luin/express-promise/pull/15.patch"},"body":"When working with Sequelize i created model instance method item.url() and want to use it inside Jade code, also mixed with providing Promise to render method, so i could't use skipTraverse.\r\nI had added two optional functions\r\n```javascript\r\napp.use(require('express-promise')({\r\n    disableJSONify: function (object) {\r\n        return true; //You can add more logic here if you want to select which page would passed without toJSON call\r\n    },\r\n    objectFilter: function (object) {\r\n        if (object && object.model) //Example for Sequelize, will skip object if it was ORM model\r\n            return true;\r\n        return false;\r\n    }\r\n}));\r\n```"},"comment":{"url":"https://api.github.com/repos/luin/express-promise/issues/comments/145559098","html_url":"https://github.com/luin/express-promise/pull/15#issuecomment-145559098","issue_url":"https://api.github.com/repos/luin/express-promise/issues/15","id":145559098,"user":{"login":"semoro","id":1918780,"avatar_url":"https://avatars.githubusercontent.com/u/1918780?v=3","gravatar_id":"","url":"https://api.github.com/users/semoro","html_url":"https://github.com/semoro","followers_url":"https://api.github.com/users/semoro/followers","following_url":"https://api.github.com/users/semoro/following{/other_user}","gists_url":"https://api.github.com/users/semoro/gists{/gist_id}","starred_url":"https://api.github.com/users/semoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semoro/subscriptions","organizations_url":"https://api.github.com/users/semoro/orgs","repos_url":"https://api.github.com/users/semoro/repos","events_url":"https://api.github.com/users/semoro/events{/privacy}","received_events_url":"https://api.github.com/users/semoro/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T15:00:35Z","updated_at":"2015-10-05T15:00:35Z","body":"Also skipTraverse not working for ORM models...."}}