define([], function(){
    return function(type, value)
    {
        if (type === 'array')
            if(typeof value === "object")
                value = JSON.stringify(value, null, 2);
            else
                value = '[]';
        if (type === 'boolean')
            value = value?'true':'false';
        return value;
    }
});