fixed JSON validation output
created single-file function for CSV to JSON convert script