wajid commited on
Commit
033c4e4
·
1 Parent(s): 00063f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -181,12 +181,22 @@ async def _file_upload(my_file:
181
 
182
 
183
  # some JSON:
184
- x = '{ "success":success, "errorMessage":errorMessage, "data":json_file}'
 
 
 
 
 
 
 
 
 
 
185
 
186
  # parse x:
187
  #y = json.loads(x)
188
 
189
- return x#json_file
190
 
191
 
192
 
 
181
 
182
 
183
  # some JSON:
184
+ x = '{ "success":success, "errorMessage":errorMessage}'
185
+ y = {"data":json_file}
186
+
187
+ # parsing JSON string:
188
+ z = json.loads(x)
189
+
190
+ # appending the data
191
+ z.update(y)
192
+
193
+ # the result is a JSON string:
194
+ # print(json.dumps(z))
195
 
196
  # parse x:
197
  #y = json.loads(x)
198
 
199
+ return json.dumps(z)#json_file
200
 
201
 
202