The James Webb Space Telescope's mid-infrared spectrograph caught the light from the gas giant's star as the planet crossed in front of it.