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
Hi, I'm trying to use this project to introduce some JSON Path support for other (non-serde-json) document-tree formats. It would be great if this library could work as a foundation for evalution of formats like ie. CBOR or document-like DBs.
Currently it's not possible to build your own query evaluator using this library. The bare minimum requires access to whole parse tree of JsonPath including ie. pattern match over JsonPathIndex/Function which are not part of the public API (jsonpath_rust::model is pub(crate)).
Another idea would be to introduce a generic trait to simplify evaluation model - given implementations for methods such as iterate / access-by-field / access-by-index etc. - which are specific to target tree-type we're querying over - I think the whole JSON Path query evaluation could be made pretty generic.
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to use this project to introduce some JSON Path support for other (non-serde-json) document-tree formats. It would be great if this library could work as a foundation for evalution of formats like ie. CBOR or document-like DBs.
Currently it's not possible to build your own query evaluator using this library. The bare minimum requires access to whole parse tree of
JsonPath
including ie. pattern match overJsonPathIndex
/Function
which are not part of the public API (jsonpath_rust::model
ispub(crate)
).Another idea would be to introduce a generic trait to simplify evaluation model - given implementations for methods such as iterate / access-by-field / access-by-index etc. - which are specific to target tree-type we're querying over - I think the whole JSON Path query evaluation could be made pretty generic.
The text was updated successfully, but these errors were encountered: