t.responseType = 'json';
	request.send();
	request.onload = function() {
  	const candidates = request.response;
  //console.log(candidates) /// Use this JSON array to load on to the smart contract. 
	var o=-1;
  	for(i =0; i<candidates.length;i++){
  		if((candidateDistrict.indexOf(candidates[i].district) == -1)){
  			candidateDistrict.push(candidates[i].district)
  			o+=1;
  			candidateParty[o]= []
			candidateNames[o] = []
		}
  	

  	candidateNames[o].push(candidates[i].name)
  	
  	candidateParty[o]