A justice of the peace (JP) is a judicial officer, elected or appointed to a local court that has limited jurisdiction. In some locations a JP deals with traffic violations, parking tickets and may have the authority to perform marriages ceremonies. In many places they are the entry-level courts that most criminal cases pass through. JP courts were popular in early history, but are now found mostly in rural areas. Otherwise people would have to travel longer distances to other courts of law.