Commit 14d525da by Rashid Khan

added JSONifying of objects

parent b7441309
......@@ -29,8 +29,12 @@ angular.module('kibana.filters', [])
}).filter('stringify', function() {
return function(arr, start, end) {
if(!_.isUndefined(arr)) {
if(_.isObject(arr) && !_.isArray(arr)) {
return angular.toJson(arr);
} else {
return arr.toString();
}
}
};
}).filter('noXml', function() {
var noXml = function(text) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment