Skip to content

path/key for concrete index in array #4

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
niquola opened this issue Oct 26, 2014 · 2 comments
Open

path/key for concrete index in array #4

niquola opened this issue Oct 26, 2014 · 2 comments

Comments

@niquola
Copy link

niquola commented Oct 26, 2014

Could i construct path using concrete index in array:

'{"a":[{"b":1},{"b":2}]}' @@ 'a.0.b = 1'
@darkixion
Copy link

You can't do that. Do you have a use-case for it?

@niquola
Copy link
Author

niquola commented Oct 28, 2014

I think index in array is quite semantic and could be considered as key.

For example i put info about children of person in array in birth-date order and i want search by first child

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants