Added REST json functionality in publicuserprofile controller