I want to parse below json array and store property of object in array of shell script variable.
{
"student_profile":[
{
"fname":"abc",
"lname":"xyz"
},
{
"fname":"def",
"lname":"pqr"
}
]
}
Below is my sh file.
myfile.sh
#!/bin/bash
declare -a names=()
###### Acess and parse json file here and store fname inside the name array