Spontaneous assembly of a nine-vertex lithium framework encapsulating the peroxide dianion.