You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But there is no '@.index' to allow this to work:
people[].{"index":@.index,"name":name, "state":state.name}
I realize this is not strictly a query function but AFAIK the items in a JSON list are ordered so it would not be arbitrary to associate a fixed index to each item.
this is not in the original specification but would be usefull.
@.index could not be an option because we can't have an index property in the JSON Source.
Activity
jdevillard commentedon Aug 14, 2018
Hello,
this is not in the original specification but would be usefull.
@.index could not be an option because we can't have an index property in the JSON Source.
We will check what keyword we can add for this.
ZipZamZappem commentedon Aug 14, 2018
2 random thoughts: 'ndx' or 'pos'
longshot: 'indice'
ZipZamZappem commentedon Aug 15, 2018
A colleague suggested: 'offset'
springcomp commentedon Apr 12, 2019
Thanks for the feedback.
I would first try an steer the official specification to include this before integrating non-official extensions.
ZipZamZappem commentedon Apr 12, 2019
How does one go about proposing changes to the official specification?
springcomp commentedon Aug 31, 2019
I think you must head over to the official site and write a pull request to the spec.
Similar to this one.