In Texas, Justices of the Peace have no particular requirements, and are (IIRC) the equivalent of small-claims courts in the rural counties, but have had some special powers, like acting as coroner in counties without access to one. I had a government teacher with a long list of amusing anecdotes---like the JP that determined that a body with like, 27 bullet wounds had committed suicide. Judge Roy Bean was a JP; at one point someone brought in a dead cowboy who had fallen down a cliff. The body was carrying $25 and a pistol. Bean found the cowboy to be carrying a concealed weapon, confiscated the pistol, and fined the body $25.