make run() return dict and _runSimulation() convert it to JSON.