I came across the following sentence in a website:
人々は月はチーズの球だと考えました
This sentence seems to have two topic particles: 人々 is the topic of the main sentence because "people thought something" (人々は...考えました). The と particle marks what people thought, which was the sentence 月はチーズの球だ. This sentence has a different topic and therefore another は. Is this analysis correct? Is this sentence I've found grammatically correct?