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

Export required traits for parsing a json path #82

Open
beltram opened this issue Nov 15, 2021 · 1 comment · May be fixed by #83
Open

Export required traits for parsing a json path #82

beltram opened this issue Nov 15, 2021 · 1 comment · May be fixed by #83

Comments

@beltram
Copy link

beltram commented Nov 15, 2021

Hi, first of all thank you very much for this crate, helped me a lot.

I recently had to implement something where I had a bunch of partial json objects, each with its associated json path, and I had to build a json object from all those partial ones. In order to do this I had to parse each json path backwards in order to build my final json object. My code lies here.

But traits for doing this are not public. In the end, I would love to have those public use jsonpath_lib::{ParserNodeVisitor, ParserTokenHandler, ParseToken, StrRange};. I get that it is not the main purpose of the crate ; it is not aimed at being a parser.

I am willing to open a PR for that, I just wanted to have your consent (and explain why). WDYT ?

Thank you very much

@freestrings
Copy link
Owner

I'm sorry. The reply was late.

This library prioritizes filtering JSON documents by jsonpath rather than providing jsonpath parser.

So, the code related to the parser has not been public yet. (It may be modified.)

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

Successfully merging a pull request may close this issue.

2 participants