Every zany is, by name, a Johnny. The word comes from Zanni, a dialect nickname for the Italian Giovanni, or John.

The original Oxford English Dictionary calls Zanni the Venetian and Lombard form of Gianni. Wikipedia adds that the name was common in the countryside that supplied servants to Venice. So the name became shorthand for a servant, someone whose identity did not matter.

The commedia dell'arte turned that servant into a stage type. The Zanni was a migrant worker from outside the city, often said to come from Bergamo. He was loutish, always hungry and prone to falling asleep at the wrong moment, yet he had a cunning streak. Merriam-Webster describes him as a clever, proud valet with plenty of common sense and a love of practical jokes.

His costume was baggy white clothing, traditionally made from flour sacks. He wore a mask with a long nose, and the longer the nose, the more foolish the character.

Many famous characters grew out of the Zanni. Harlequin, Brighella, Scaramouche and Pulcinella all descend from him. Wikipedia divides them into a cunning first Zanni and a sillier second Zanni.

English had the word by the late 1580s. The original OED quotes Shakespeare's Love's Labour's Lost, which it dates 1588: "Some carry-tale, some please-man, some slight Zanie." Merriam-Webster's first known use is 1594, for the toady sense. A zany was a subordinate clown or acrobat who mimicked the main performer's tricks, ludicrously. The word also meant a servile follower, a toady, and later anyone who played the buffoon.

The adjective came much later. Merriam-Webster dates it to 1869, first in the sense of having the qualities of a zany. Its main modern sense is very eccentric or absurd, often in an amusing way, as in a zany comedy or a zany idea.

Merriam-Webster notes that most people now know zany as an adjective. The servant from the Venetian countryside has faded from view. His nickname survives in every zany plot and zany sidekick, though few people hear "Johnny" in it.