return response as json with command stdout/stderr output