Add json to cvs
Logic to json to cvs