Changed csv to json format of sending data