jellybean (n.)
"small bean-shaped sugar candy with a firm shell and a thick gel interior," 1905, from jelly (n.) + bean (n.). So called for its shape. Soon used in U.S. slang for "stupid person," probably encouraged by the slang sense of bean as "head."