added the json functionality to executing jobs