Cook your rice with slightly lesser water so that it's firm and grainy instead of soft and fluffy.

About 2 to 3 tbsp of pineapple juice will seeped out after cutting. Reserve those juice to flavour your fried rice. Cut your pineapple just before cooking and do not chill your pineapples so to retain its juiciness.