Tree Structure

Full example of data filtering using a JSONPath filtering expression.

Input Data

{
    "shop": {
        "title": "The good old shop",
        "description": "This is the good old shop",
        "products":[
            {
                "title":"Product 1",
                "description":"This is the product 1"
            },
            {
                "title":"Product 2",
                "description":"This is the product 2"
            },
            {
                "title":"Product 3",
                "description":"This is the product 3"
            }
        ]
    }
}

Data Filter

$.shop.products

Filtered Data

[
    {
        "title":"Product 1",
        "description":"This is the product 1"
    },
    {
        "title":"Product 2",
        "description":"This is the product 2"
    },
    {
        "title":"Product 3",
        "description":"This is the product 3"
    }
]

Last updated

Was this helpful?