I'm trying to parse this JSON file with jquery to access the "onpage" field that is set to "true". Then use the other fields in that item (desc, icon, name & url). I can get to "items" but can figure out how to get to "onpage" inside "items". Thanks
[
{
"group": "Home",
"url": "http://www.home.com/"
},
{
"group": "Production",
"items": [
{
"onpage": true,
"desc": "View local trails",
"icon": "img/trails.png",
"name": "Trails",
"url": "https://www.home.com/go/Trails"
},
{
"onpage": false,
"desc": "Edit local trail",
"icon": "img/traileditor.png",
"name": "Trail Editor",
"url": "https://www.home.com/go/Editor/"
}
]
}
]