expr icon indicating copy to clipboard operation
expr copied to clipboard

Handle elements nested in slice?

Open OillliO opened this issue 3 years ago • 1 comments

e.g.

{
    "a": [
        {"b":1, "c":2},
        {"b":11, "c":23},
        {"b":12, "c":24},
    ]
}

How to query to find out the b when its sibling c == 24?

OillliO avatar Mar 08 '22 01:03 OillliO

You can define a special method on your env: Find() and use it return needed elements.

antonmedv avatar Mar 08 '22 07:03 antonmedv