I have a JSON object that looks like this:
var data = [
{
"parent": "Home",
"child": [
]
},
{"parent": "Services",
"child": [
{"title":"Infrastructure"},
{"title":"Development"}
]
},
{
"parent": "Sector",
"child": [
{"title":"Recruitment Consultant"},
{"title":"Change Management"},
{"title":"Industrial Relations"}
]
},
]
I am looking to create a horizontal menu based on this JSON structure. Since I am new json objects, can someone guide me on how to achieve this?