add result exporting as json and geojson

what you should do is create a utility class for file saving