I am looking to read a JSON file using shell script and getting Id based on the name attribute and store it in a variable without using "jq". Please suggest how it can be done. The json looks like:
{
"elements": [
{
"id": "1",
"internalId": "AA",
"name": "SampleService",
},
{
"id": "2",
"internalId": "BB",
"name": "Loan_Evaluation",
},
{
"id": "3",
"internalId": "CC",
"name": "Miniloan Service",
}
],`
}