Remove the seeds and fibre from the squash and dice the flesh very small. Drop into boiling water and cook for 5 minutes.
Drain the squash. Tip into a large saucepan, sprinkle over the sugar and pour in the lemon juice. Cook over a low heat for 15 minutes, gently stirring from time to time.
Stir in the cinnamon at the end of cooking.