change filetype to json