Skip to content

Filter expression return array can not use [index] get item inside  #272

@gyk001

Description

@gyk001

eg. I want get the price for book "Sayings of the Century"

👍 $.store.book[?(@.title=='Sayings of the Century')] will return an book array
👍 $.store.book[?(@.title=='Sayings of the Century')].price will return an price array

😂 $.store.book[?(@.title=='Sayings of the Century')][0] will return an empty array
😂 $.store.book[?(@.title=='Sayings of the Century')].price[0] will return an empty array

I think $.store.book[?(@.title=='Sayings of the Century')][0] should return a book
$.store.book[?(@.title=='Sayings of the Century')].price[0] should return a price

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions