run_engine(): add the 'result' argument and put the JSON output into it