Good question on an amazing piece of space technology that’s expected to outperform the Hubble telescope by a factor of more than 100, and increase our knowlege of the universe exponentially.
According NASA, the JWT strategy for image capture will rely in part on a far-orbit position in the L2 range; beyond most interference of reflected light between sun, earth, and moon. But in addition the new telescope encorporates layers of interlocking technolgy including nano motors calabrated to move mirror segments to adjustments less than 1/10,000 the thickness of a human hair. Along with those and other mechanical systems JWT will use unique data processing sofware written primarily in Python to help refine and transmit images.
But the key component that answers your question is the 3rd stage mirror system built into the Cassegrain focusing element projecting from the center of the main array. Check it all out in the video link here, beginning at about 24:02 :
https://youtu.be/aICaAEXDJQQ
Really, truly, fascinating stuff. And maybe some reason to think we can still have a bright future, considering all this was acomplished while jackass politicians were trashing themselves, the country, and science with “culture war” bullshit.