Java file to convert menus into JSON Objects and store them in text files