fix syntax errors in case statement for json2csv.go
make test case pass for json2csv_test.go