The whole law relative to the duty and office of a justice of the peace