I have a JSON file with different groups inside the competition, each containing properties like homeTeam and markerImage. I'm looking to access these properties but also need help determining the number of groups in the competition. Can anyone assist me with this?
{
"competition":{
"group1":[
{
"homeTeam":"Lawrence Library",
"markerImage":"images/red.png",
},
{
"homeTeam":"Hamilton Library",
"markerImage":"images/white.png",
},
{
"homeTeam":"Applebees",
"markerImage":"images/newcastle.png",
}
],
"group2":[
{
"homeTeam":"Lawrence Library",
"markerImage":"images/red.png",
},
{
"homeTeam":"Hamilton Library",
"markerImage":"images/white.png",
},
{
"homeTeam":"Applebees",
"markerImage":"images/newcastle.png",
}
]
}
}