false, 'message' => "You must provide a job id"); } else { $amda_ws = new WebServer(); $result = $amda_ws->getStatus($_GET); } echo json_encode($result);