Jack in the box
What's the meaning of the phrase 'Jack in the box'?
A toy consisting of a box containing a figure with a spring, which leaps up when the lid is raised.
What's the origin of the phrase 'Jack in the box'?

Jack was clearly intended to be a comic figure but not everyone finds him amusing. Fear of clowns has become a widespread enough condition lately for someone to have invented a name for it - coulrophobia. The word has no real etymological pedigree and was coined in the past twenty or so years.
The expression 'Jack in the box' existed for centuries before anyone thought of putting spring-loaded puppets inside boxes. The first reference that is known in print is found in John Foxe's Actes & Monuments, 1563, in which he reported a comment made by Bishop Nicholas Ridley:
[There are] railyng bils against the Lords supper, terming it Iack of the boxe, the sacrament of the halter, round Robin, with like unsemely termes.
It is clear that the term was used to represent something unsavoury and insulting. Very soon afterwards there is another reference that shows the phrase to have a meaning close to those who peddled 'a pig in a poke'. 'Jack in the box' was the name given to a swindler who cheated tradesmen by substituting empty boxes for the full ones that were expected. Such a 'Jack' is found in James Cranstoun's reprinting of Satirical Poems of the time of the Reformation. An anonymous poem, titled The Bird in the Cage, was first published in 1570:
Jak in the bokis, for all thy mokis a vengeance mot the fall!
Thy subteltie and palzardrie our fredome bringis in thrall.
[Cheat, for all of your mockery revenge must be taken! Your cunning and devious behaviour threatens our freedom.]

'Jack in the box' was also the name given to a type of firework and this is found in John Babington's Pyrotechnia, 1635:
Another, [firework] which I call Iack in a box.
The 18th century inventors of the children's pop-up toy needed a name for it. It was a figure in a box that jumped up and gave people a fright. What better than to do what others in various fields had already done and adopt the existing 'Jack-in-the-box' expression?
'Jack in the box' was first used as the name of the toy in the 1702 text Infernal Wanderer:
Up started every one in his seat, like a Jack in a box...
So, Jack-in-the-box was variously a religious insult, a swindler, the Devil and an incendiary device - clearly a character not to be meddled with. Even non-coulrophobic children might do well to be wary of Jack. He may not have been real but, as a bogeyman, he had some impressive credentials.
See also: 'Jack' phrases.