Besides the obvious fruit and sugar, most jam recipes also include lemon juice in the list of ingredients. That lemon juice isn’t just there for flavor; it actually plays a very important role. Here’s why we have to add lemon juice when we make jam. I know, I’ve said that before, haven’t I? But in food science, pH plays a key role, so it really is a matter of pH when you are making jam.