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

Just to understand how to use it correctly #16

Open
tiagodavi opened this issue Mar 3, 2020 · 2 comments
Open

Just to understand how to use it correctly #16

tiagodavi opened this issue Mar 3, 2020 · 2 comments

Comments

@tiagodavi
Copy link

Thank you for the library.

I am wondering how to slice the json?

I tried Jaxon.Stream.query(Jaxon.Path.parse!("$[0:3].Player")) to get first 3 players I have, but it does not work.

How can I use it correctly to get only partial data and filters?

Should I use Enum.take?

@cburgmer
Copy link

cburgmer commented Mar 3, 2020

This library doesn't seem to support array slicing currently. $[*].Player would for example work, but give you all entries.
If you want to know more about what's supported and what not you could try https://cburgmer.github.io/json-path-comparison/.

@tiagodavi
Copy link
Author

Thank you @cburgmer

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