library/core/class.controller.php
public function Json($Key, $Value = NULL) {
      if(!is_null($Value)) {
         $this->_Json[$Key] = $Value;
      }
      return ArrayValue($Key, $this->_Json, NULL);
   }
public function Json($Key, $Value = NULL) {
      if(!is_null($Value)) {
         $this->_Json[$Key] = $Value;
      }
      return ArrayValue($Key, $this->_Json, NULL);
   }
public function Json ( $ Key , $ Value = NULL ) { if ( ! is_null ( $ Value ) ) { $ this -> _Json [ $ Key ] = $ Value ; } return ArrayValue ( $ Key , $ this -> _Json , NULL ) ; }
If JSON is going to be sent to the client, this method allows you to add
extra values to the JSON array.

@param string $Key The name of the array key to add.
@param mixed $Value The value to be added. If null, then it won't be set.
@return mixed The value at the key.
If JSON is going to be sent to the client this method allows you to add extra values to the JSON array .