<?php
class json_client 
{
    var 
$queryVars;
    function 
json_client($queryVars)
    {
        
$this->queryVars $queryVars;
    }
    
/**
     * Method to return the status of the AJAX transaction
     *
     * @return  string A string of raw HTML fetched from the Server
     */
    
function return_response()
    {
        require_once(
SERVER_ROOT.'mybic_json.php');
        
$JSON = new Services_JSON();
        
$student =  $JSON->decode($this->queryVars['student']);
        
$resp "Student Name: {$student->name} received!<BR>";
        return 
$resp;
    }
    
    function 
is_authorized()
    {
        return 
true;
    }
}

?>