In all civil cases before a justice of the peace, the same advance payments shall be made, or bond and security given, as are provided for clerks for the issuance of any writ or process.