Added clean and CSV to clean JSON conversion functions