Menus

Menu JSON representation

The format of a serialized menu looks as follows:

"u93b2dee8ffda4a61804b4cf15ec6a285":{
  "type":"menu",
  "links":{
     
  },
  "meta":{
            
  },
  "data":{
    "name":"main",
    "siteMenuItems":[
      {
        "depth":0,
        "repositoryBased":false,
        "properties":{
          "hst:referencesitemapitem":"root",
          "hst:parameternames":[
            "css class"
          ],
          "hst:parametervalues":[
            "home"
          ]
        },
        "name":"home",
        "childMenuItems":[
           
        ],
        "parameters":{
          "css class":"home"
        },
        "links":{
          "site":{
            "href":"/",
            "type":"internal"
          }
        }
      }]
    }
  }
}

The menu is hierarchical and can have children in childMenuItems. Although menus referenced by components are part of the flattended object list in the page model, the menu objects themselves are not flattened.