SetOutputDataOnly(true); $data = json_decode(file_get_contents('php://input'), true); $sOql = $data['query']; try { /** @var ModelReflection $oModelReflection */ $oModelReflexion = new ModelReflectionRuntime(); $oModelReflexion->GetQuery($sOql); } catch (Exception $e) { } $oPage->SetData([ 'is_valid' => !isset($e), ]); $oPage->output(); } }