"sprung like a genie"

A genie (or djinn) is a supernatural entity, originating in Arab mythology. In modern mythology, a genie freed from imprisonment in a lamp grants the bearer three wishes.