Melt butter in a skillet over medium heat. Add corn and stir cooking for about 4 minutes, or until most of the moisture is cooked off.
Add sugar and mayo, and stir until the mayo mixed in evenly with the corn.
Flatten the corn evenly with the back of a spoon or a spatula. Top evenly with mozzarella cheese. Lower the heat and cover for 3-4 minutes until the cheese is melted.
Remove from heat and top with parsley. Serve immediately.
Preheat the oven to 400 degrees F. Grease an oven-safe skillet with butter.
If using frozen corn, place in a colander and run under cold water until defrosted. Drain well. If using canned corn, drain well. If using fresh corn, remove from the cob and use as is.
In a large bowl, mix together corn, sugar, and mayo until combined.
Transfer the mixture to the greased skillet and spread out into an even layer. Top evenly with mozzarella cheese.
Bake for 15 minutes until the cheese is melted. Broil for an additional 2 minutes until the cheese gets golden brown.
Top with parsley, and serve.
