hello i am trying to figure out how i would ago about pulling information from a database in php and json_encoding it ito a JavaScript object that contains several JavaScript arrays that themselves have children objects and arrays. below is the JavaScript i need. ive been playing with embedding arrays into php objects but cant seem to get it to come our correctly.
self.navigation = [
{
menutext:"Home",
url:"/"
},
{
menutext:"About",
url: "#/about",
submenu:[
{
menutext:"Pricing",
url: "/pricing"
}
]
}
];