Avatar of stargateatlantis
stargateatlantis

asked on 

Complex JSON processing javascript

Lets say you have the following JSON OBJECT

var Menu = {
   "Menu Cat 1":[{menuItem:"Item Cat Title",target:''}],
   "Menu Cat 2":[{menuItem: 'Item1 Cat2',target : ''},
     {menuItem: 'Item2 Cat3',target : ''},
     {menuItem: 'Item3 Cat4',target : ''}],
    		   
}

Open in new window


I want to console log the data "Menu Cat 1" also console log the menuItems not sure how to go about this any help would be great.
JavaScriptJSON

Avatar of undefined
Last Comment
zephyr_hex (Megan)

8/22/2022 - Mon