importer now writes valid json without the need to remove last comma