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 JsonPath for list querying #110

Open
renkun-ken opened this issue Oct 8, 2015 · 3 comments
Open

Support JsonPath for list querying #110

renkun-ken opened this issue Oct 8, 2015 · 3 comments

Comments

@renkun-ken
Copy link
Owner

jeroen/jsonlite#112

The example provided by @timelyportfolio should be very helpful.

@renkun-ken
Copy link
Owner Author

@timelyportfolio, I implement a list.query to query list object or direct json string using JsonPath.

@timelyportfolio
Copy link
Contributor

Oh nice, I'll play with it. I think this does something that is basically impossible with R lists, and something I wanted in list.search. Do you have any immediate use cases?

I'll also try to evaluate some of the other packages. I like defiant.js a lot, but it is tricky in V8 since it requires the domparser of a browser and other browser things. It's nice in that it uses real XPath.

@renkun-ken
Copy link
Owner Author

After some consideration, I think jsonpath does nothing more than the original functions but some recursive node searching like what .. does in jsonpath. list.search should be enhanced so that more metadata are available.

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

No branches or pull requests

2 participants