Skip to content

path/key for concrete index in array #4

Description

@niquola

Could i construct path using concrete index in array:

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

Activity

  1. darkixion commented on Oct 28, 2014

    @darkixion

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

  2. niquola commented on Oct 28, 2014

    @niquola
    Author

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions