Arecibo was 73,000 square meters while JWST is "only" 25 square meters.
For this, building it in a crater on the moon and allowing the moon itself to help support it is advantageous.
... and has some interesting scaling up possible.
https://www.researchgate.net/publication/258694444_Implement...
Edit: I forgot the moon has a much lower gravity than Earth. It might still be worthwhile to build in orbit, but we can build a lot bigger on the moon than on Earth.
> Gravitational anomalies slightly distorting the orbits of some Lunar Orbiters led to the discovery of mass concentrations (dubbed mascons) beneath the lunar surface caused by large impacting bodies at some remote time in the past. These anomalies are of sufficient magnitude to cause a lunar orbit to change significantly over the course of several days. They can cause a plumb bob to hang about a third of a degree off vertical, pointing toward the mascon, and increase the force of gravity by one-half percent.
> ...
> Study of the mascons' effect on lunar spacecraft led to the discovery in 2001 of "frozen orbits" occurring at four orbital inclinations: 27°, 50°, 76°, and 86°, in which a spacecraft can stay in a low orbit indefinitely.
Consider that - there are only four inclinations where you an orbit the moon without needing to do constant adjustments. Whereas with the Earth basically all the inclinations are available.
https://en.wikipedia.org/wiki/Frozen_orbit and https://science.nasa.gov/science-news/science-at-nasa/2006/0... for more on this.