Original John Doe

Was there an original “John Doe”? Or, why (and since when) do they call anonymous corpses John/Jane Doe?

Cecil speaks.