Convert json file to csv file