You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
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?
The text was updated successfully, but these errors were encountered: