This is a common sweet in Mexico. It is also available in the hot version: just think of it ... candied pineapple covered with dust of chile piquin.
Best eaten carefully, and in small doses.