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