@@ -261,7 +261,7 @@ def do_call(call_name, args=[], kwargs={}):
261
261
log (call_name , f"local call, args={ args } , kwargs={ kwargs } " )
262
262
master_response = call (* args , ** kwargs )
263
263
264
- response = [master_response ]
264
+ response = [nest . serialize_data ( master_response ) ]
265
265
if mpi_comm is not None :
266
266
log (call_name , "waiting for response gather" )
267
267
response = mpi_comm .gather (response [0 ], root = 0 )
@@ -277,7 +277,7 @@ def route_exec():
277
277
if EXEC_CALL_ENABLED :
278
278
args , kwargs = get_arguments (request )
279
279
response = do_call ("exec" , args , kwargs )
280
- return jsonify (response )
280
+ return jsonify (nest . serialize_data ( response ) )
281
281
else :
282
282
flask .abort (
283
283
403 ,
@@ -307,7 +307,7 @@ def route_api_call(call):
307
307
args , kwargs = get_arguments (request )
308
308
log ("route_api_call" , f"call={ call } , args={ args } , kwargs={ kwargs } " )
309
309
response = api_client (call , args , kwargs )
310
- return jsonify (response )
310
+ return jsonify (nest . serialize_data ( response ) )
311
311
312
312
313
313
# ----------------------
0 commit comments