// assuming that the response is the following
{status: "ok", data: "value", data2: "value2"}
var r = dhx.ajax.getSync("server.php");
var t = dhx.s2j(r.xmlDoc.responseText); // convert response to json object
if (t != null && t.status == "ok") {
// response is ok
}