{"action":"created","issue":{"url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1182","repository_url":"https://api.github.com/repos/tgriesser/bookshelf","labels_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1182/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1182/comments","events_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1182/events","html_url":"https://github.com/tgriesser/bookshelf/issues/1182","id":145232875,"number":1182,"title":"Support nested paths in visibility plugin","user":{"login":"cmcewen","id":1307633,"avatar_url":"https://avatars.githubusercontent.com/u/1307633?v=3","gravatar_id":"","url":"https://api.github.com/users/cmcewen","html_url":"https://github.com/cmcewen","followers_url":"https://api.github.com/users/cmcewen/followers","following_url":"https://api.github.com/users/cmcewen/following{/other_user}","gists_url":"https://api.github.com/users/cmcewen/gists{/gist_id}","starred_url":"https://api.github.com/users/cmcewen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmcewen/subscriptions","organizations_url":"https://api.github.com/users/cmcewen/orgs","repos_url":"https://api.github.com/users/cmcewen/repos","events_url":"https://api.github.com/users/cmcewen/events{/privacy}","received_events_url":"https://api.github.com/users/cmcewen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-01T17:06:43Z","updated_at":"2016-04-02T13:38:37Z","closed_at":null,"body":"A bit of an uncommon issue, but I'm using a JSON column in postgres and would like to use the visibility plugin to hide only a certain nested path in the the object like this: `hidden: ['data.token']`\r\n\r\nIt seems like it'd be possible to support it using `unset` (https://github.com/lodash/lodash/issues/1411), but that requires a newer Lodash version. Have you thought about upgrading? Any other way I could support that use case?"},"comment":{"url":"https://api.github.com/repos/tgriesser/bookshelf/issues/comments/204718110","html_url":"https://github.com/tgriesser/bookshelf/issues/1182#issuecomment-204718110","issue_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1182","id":204718110,"user":{"login":"rhys-vdw","id":822105,"avatar_url":"https://avatars.githubusercontent.com/u/822105?v=3","gravatar_id":"","url":"https://api.github.com/users/rhys-vdw","html_url":"https://github.com/rhys-vdw","followers_url":"https://api.github.com/users/rhys-vdw/followers","following_url":"https://api.github.com/users/rhys-vdw/following{/other_user}","gists_url":"https://api.github.com/users/rhys-vdw/gists{/gist_id}","starred_url":"https://api.github.com/users/rhys-vdw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhys-vdw/subscriptions","organizations_url":"https://api.github.com/users/rhys-vdw/orgs","repos_url":"https://api.github.com/users/rhys-vdw/repos","events_url":"https://api.github.com/users/rhys-vdw/events{/privacy}","received_events_url":"https://api.github.com/users/rhys-vdw/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T13:38:37Z","updated_at":"2016-04-02T13:38:37Z","body":"Since this would have limited usage I don't think we'd want to support it in this repository. You'd be better off writing your own plugin based on the virtuals plugin (which is easy enough to do). In that case you'd be able to include whichever version of Lodash you like. (Although it would be nice to update Lodash here.)"}}