Skip to content

JSON Selector Filter help

dgtlmoon edited this page Jun 22, 2022 · 15 revisions

To just indent a response, for better diffs, use json:$.


Some ideas, if you want to select where a value is set to something

[
    {
        "id": "DK*CLE*E11499*1",
        "status": 3,
        "price": null,
        "free": false,
        "link": null
    },
    {
        "id": "DK*CLE*E11499*2",
        "status": 2,
        "price": null,
        "free": false,
        "link": null
    }
]

Try json:$[?(@.status==3)]

"Filter" compatibility with other JSON selector libraries

json:$.address[?(@.use="work")] works

json:$.address.[?(@.use="work")] does not work/validate

see https://github.com/dgtlmoon/changedetection.io/discussions/711

Clone this wiki locally