Anansi and the Talking Melon by Eric A. Kimmel (1994)

When Anansi the Spider gets stuck in a melon, he decides to pass his time by doing what he’s best at—tricking the other animals around him.
 
When his melon begins talking, Elephant is so impressed he decides to take it to show the king.  But Anansi can’t resist the opportunity to make jokes at the expense of everyone they meet. Even the King loses his temper over Anansi’s bold remarks—but how will the Spider free himself?