I have such JSON:
{
"A": { "error": null },
"B": { "C": {"error": "error string"}},
"C": { "D": {"error": null}},
"D": { "error": "err str"}
}
end I want to find all error values that are not null .
In my example, it should return
"error string"
"err str"
How can i do this? Is this possible with jq ?
source
share