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

Support for Recursive Operator #168

Open
DanielNetzer opened this issue May 22, 2022 · 1 comment
Open

Support for Recursive Operator #168

DanielNetzer opened this issue May 22, 2022 · 1 comment

Comments

@DanielNetzer
Copy link

In JSON Path there is a recursive path finder using the $.., is there a similar implementation in json-mask?

@nemtsov
Copy link
Owner

nemtsov commented May 22, 2022

Hi @DanielNetzer! Json-mask doesn’t implement that, but it’s an interesting idea. The closest you can come with this lib at the moment is with a wildcard selector, like this: */a for one level, where “a” would be selected from any field, e.g. {“g”: {“a”: 1}} or at any level: */*/a, */*/*/a, etc

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

No branches or pull requests

2 participants