Added template filter "json" which is not vulnerable to XSS attacks