public function jsonEncode($Object, $skipObjectEncode = false)
    {
        if (!$skipObjectEncode) {
            $Object = $this->encodeObject($Object);
        }
        
        if (function_exists('json_encode')
           && $this->options['useNativeJsonEncode']!=false) {
    
            return json_encode($Object);
        } else {
            return $this->json_encode($Object);
        }
    }
public function jsonEncode($Object, $skipObjectEncode = false)
    {
        if (!$skipObjectEncode) {
            $Object = $this->encodeObject($Object);
        }
        
        if (function_exists('json_encode')
           && $this->options['useNativeJsonEncode']!=false) {
    
            return json_encode($Object);
        } else {
            return $this->json_encode($Object);
        }
    }
public function jsonEncode ( $ Object , $ skipObjectEncode = false ) { if ( ! $ skipObjectEncode ) { $ Object = $ this -> encodeObject ( $ Object ) ; } if ( function_exists ( 'json_encode' ) && $ this -> options [ 'useNativeJsonEncode' ] != false ) { return json_encode ( $ Object ) ; } else { return $ this -> json_encode ( $ Object ) ; } }
Encode an object into a JSON string

Uses PHP's jeson_encode() if available

@param object $Object The object to be encoded
@return string The JSON string
Encode an object into a JSON string