implement json definition support for menu structures