We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea5f8fc commit 805f5b7Copy full SHA for 805f5b7
loklak.py
@@ -80,11 +80,11 @@ def xmlToJson(self, xmlData = None):
80
81
def csvToJson(self, csvData = None, fieldnamesList = None):
82
"""Convert CSV to JSON as the service."""
83
- jsonData = ''
+ jsonData = '[]'
84
if csvData:
85
data = csv.DictReader( csvData, fieldnames = fieldnamesList)
86
jsonData = json.dumps( [ row for row in data ] )
87
- return out
+ return jsonData
88
89
def hello(self):
90
"""Retrieve a json response about the basic status of the server."""
0 commit comments