I have a dynamically created json file.
I want to know only the “errors” part of “status”. Is there any easy way to do so?
...
a lot of lines
...
"status": {
"errors": [
{
"message": "Input contained no data",
"reason": "invalid"
}
],
"state": "DONE"
}
...
a lot of lines
...
I need to use the output in a shell script so awk is preferred.
This might work for you: