I have JSON input like the following.
{"value":{"error":"no such element","message":"no such element: xxx"}{"value":null}
I want to use jq to return with an exit status of 0 (print nothing) for the second case, and print no such element: xxx to stderr and return an exit status of 1 for the first case.
How can I achieve this in jq?