Prime stuff, a real treat, something delightful. Of course, the allusion is to jam given to children for a treat.
“There must have been a charming climate in Paradise, and [the]
connubial bliss [there] ... was real jam.” —
Source: Dictionary of Phrase and Fable, E. Cobham Brewer, 1894
More on Real Jam from Infoplease: