php service to convert previous csv data to json and save as json file