Parses csv and json file.