converted menu to json type