Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support For N level filtering #217

Open
Labels
@KieranTH

Description

Motivation

I would like to be able to filter paths to multiple degrees. This is mainly associated with filtering a dataset based on heavily nested fields, of which may also be arrays.

Current behavior

Does not support - Example:

JSON:

{
 "name": "Test",
 "grouping": {
 "nested_1": [
 {
 "name": "First Level Nest",
 "nested_2": [
 {
 "name": "Second Level Nest"
 }
 ]
 }
 ]
 }
}

Path:
$..grouping[?(@.nested_1.nested_2[?(@.name == "Second Level Nest")])]

Desired behavior

Being able to filter to an Nth degree of a dataset through nested filter queries.

If anyone has any idea around this, or possible alternative approaches which don't heavily degrade performance, would love to hear them!

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

        AltStyle によって変換されたページ (->オリジナル) /