<P> In their role, JPs serve as visiting justices of Singapore prisons, mediators or referees in the subordinate courts . They may also solemnise marriages in the Registry of Marriages or perform the duties of the magistrate conferred on them by any written law . </P> <P> In Sri Lanka, Justice of the Peace (JP) is an honorary post, with authorization to witness and sign statutory declarations and affidavits . Persons appointed as a Justice of the Peace may use the post-nominal JP . Current appointments are made under the Judicature Act No 02 of 1978, by the Minister of Justice at his / her discretion by publishing a list in the Gazette and appointee taking oaths before a high court, district court judge or magistrate with registrar of the supreme court recording it . Any citizen of Sri Lanka can apply to the Ministry of Justice giving his or her credentials to be appointed as a justice of the peace . However, the applicant should be one who has served the public and carries out social service and should be of good standing . The President of Sri Lanka and his / her officers are ex officio justices of the peace . A justice of the peace, who is an Attorney at law can be appointed as an unofficial magistrate . </P> <P> The post was introduced in the British colonial era, during which time appointments were made by the Governor until 1938, after which appointments were made by the Legal Secretary until 1947 . After Ceylon gained its independence in 1948, appointments were made by the Governor General and the Minister of Justice . Justice of the Peace had the power to administer oaths and affirmations per the Courts Ordinance No. 1 on 1889 section 84 and they could formally appoint members of the public to act as special police officers in times of turmoil and riots . Since certain government officers were ex-officio justices of the peace, this allowed British colonial officers to appoint special police officers from the European planters in times of crisies such as the 1915 riots . The Village Councils Law (No. 6 of 1964) made the Chairman of the Village Council an ex officio justices of the peace for that village area . </P> <P> In 2014, for the first time, Justices of the Peace were authorized in Tonga . JPs are appointed by the Crown, but the Lord Chief Justice regulates their duties and defines their powers . The first JPs were warranted with duties including granting bail; issuing search warrants and subpoenas; taking affidavits, declarations and oaths; and having the power to witness documents . Term of office is one year and officials can be reappointed . The initial 19 JPs appointed were:' Aisea Ta'ofi and Sione Hinakau of Niuatoputapu;' Inoke Tuaimei'api of Niuafo'ou; Siosiua Hausia from ʻEua; Sione Palu, Sione Fakahua, Me'ite Fukofuka and Kisione Taulani of Ha'apai; Salesi Kauvaka, Viliami Pasikala, Haniteli Fa'anunu, Meli Taufaeteau and Moleni Taufa from Vava'u; and Salote Fukofuka,' Amelia Helu,' Ofa Likiliki, Tevita Fakatou, Sioape Tu'iono and Semisi Tongia of Tongatapu . </P>

Who appoints the justice of peace in sri lanka