Added MENU_json() function. Improved handling of "Tray" menu properties.