How can I use this json pretty print [ http://jsfiddle.net/KJQ9K/ ] with angularJS?
Lets assume myJsonValue is
{a:1, \'b\':\'foo\', c:[false,\'false\',n
A simpler code:
app.filter('prettyJSON', function () { return function(json) { return angular.toJson(json, true); } });
Remember to use the tag