Parsing JSON using standard tools (grep, awk, sed, etc), is probably more difficult than you imagine. You really need a JSON parser. This is discussed here:
bash - Parsing JSON with Unix tools - Stack Overflow[
^]
Looking at the home page for
jq
Parsing JSON with jq[
^] it describes itself a "sed for JSON", so it might be a good way to go.
I have not tried this, nor do I know of its suitability for purpose, so Caveat Usor.