var qs = require('querystring');

exports.set = function(input, param, value) {
    input[param] = value;
    return qs.stringify(input);
};

exports.unset = function(input, param) {
    delete input[param];
    return qs.stringify(input);
};

exports.s = function(input) {
    return ('' + input == 1 ? '' : 's');
};

exports.es = function(input) {
    return ('' + input == 1 ? '' : 'es');
};

@@ -229,32 +229,103 @@
 ify(input);%0A%7D;%0A%0A
+exports.json = function(input) %7B%0A    return JSON.stringify(input);%0A%7D;%0A%0A
 exports.s = func

Add JSON template filter