jsonpath icon indicating copy to clipboard operation
jsonpath copied to clipboard

Export required traits for parsing a json path

Open beltram opened this issue 4 years ago • 1 comments

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

beltram avatar Nov 15 '21 17:11 beltram

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.)

freestrings avatar Nov 18 '21 06:11 freestrings