fixed issues with spacing and disappearing commas when converting csv to json