refactored utility.getJSONFromCSV to return proper JSON