detect csv, xls, xlsx and convert to json