jsquery icon indicating copy to clipboard operation
jsquery copied to clipboard

path/key for concrete index in array

Open niquola opened this issue 11 years ago • 2 comments

Could i construct path using concrete index in array:

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

niquola avatar Oct 26 '14 22:10 niquola

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

darkixion avatar Oct 28 '14 09:10 darkixion

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

niquola avatar Oct 28 '14 15:10 niquola