Never add pineapple as is, to jellies, etc. since it will not set well and taste bitter too. Always Boil in a little sweetened water, and drain, or use canned fruit (if you must).
Add a few drops of limejuice and a tsp. of ghee to rice before boiling to separate each grain.