Justices of the peace are also called magistrates. Magistrates are judges who decide cases in the youth court or adult magistrates’ court.
In the youth court if there is one judge they will be a district judge. If there are two or three judges they will be magistrates (also called a lay bench or justices of the peace).