var base_filter = require('../lib/base_filter'),
  util = require('util'),
  logger = require('log4node');

function FilterJail() {
  base_filter.BaseFilter.call(this);
  this.mergeConfig({
    name: 'Jail',
    optional_params: ['target_field'],
    default_values: { target_field: 'data' },
    start_hook: this.start,
  });
}

util.inherits(FilterJail, base_filter.BaseFilter);

FilterJail.prototype.start = function(callback) {
  logger.info('Initializing Jail filter with target:', this.target_field);
  callback();
};

FilterJail.prototype.process = function(data) {
  this.emit('data', { [this.target_field]: data.message || data });
};

exports.create = function() {
  return new FilterJail();
};

@@ -572,28 +572,23 @@
 %7B%0A  
-this.emit('data', %7B 
+var xd = %7B%7D; xd
 %5Bthi
@@ -602,17 +602,18 @@
 t_field%5D
-:
+ =
  data.me
@@ -625,19 +625,29 @@
  %7C%7C data
- %7D)
+;%0A  return xd
 ;%0A%7D;%0A%0Aex

remove EC6 expression