Exporter now saves records to a json file