Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Excluding properties from traversal #59

Open
dbo opened this issue May 26, 2014 · 2 comments
Open

Enhancement: Excluding properties from traversal #59

dbo opened this issue May 26, 2014 · 2 comments

Comments

@dbo
Copy link

dbo commented May 26, 2014

The selected object tree needs to be acyclic, which is quite inconvenient if you are cross referencing branches. An indirection via an external map helps, but is not really elegant, IMO. I'd rather suggest a "special" key being excluded on traversal, e.g. "__meta" (should be customizable) which could serve as such.

In conjuction with issue #58 (parent access in forEach), this offers a lot of flexibility traversing an object tree.

What do you think?

@dbo
Copy link
Author

dbo commented May 26, 2014

I am proposing something like dbo@be8f5b4

@danvk
Copy link

danvk commented Oct 6, 2014

I implemented something like this in pyjsonselect. I hadn't thought of the circular reference use case, but it can be a huge performance boost for any large object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants