Added json functionality for menus