I managed to solve this problem
Here is the solution
<button onclick='getLoc(" + geojson.features[i].geometry.coordinates[0] + "," + geojson.features[i].geometry.coordinates[1] + ")'>View</button>
function getLoc(lat, lng){
map.setView(new L.LatLng(lat, lng), 12);
}