The following is the format of data that I need to parse in bash. Assuming that a bash variable holds this data, I need to be able to extract the value in xyz
. Further, I need to be able to also extract aa
and bb
individually from with xyz
.
"params": {
"children": [
{
"abc": {
"pp": "1234567890",
"qq": "a.b.c"
},
"xyz": {
"aa": "0987654321",
"bb": "c.b.a"
},
"def": "p.q.r"
}
],
"def": "e.f.g.h"
}
Any help on this is appreciated!