The tojson filter doesn't seem to exist in jinja2 v2.7.1 (the most recent version I had installed on my system). I upgraded to v2.7.2 and it still doesn't exist. Attempts to use that filter results in:
jinja2.exceptions.TemplateAssertionError: no filter named 'tojson' None of the filters.py modules on my system contain any mention of the "tojson" filter. Even if that filter existed the documentation you refer to is ambiguous about how it handles objects which cannot be serialized to JSON. What about an object with attribute "x" for which "obj.x" is a legal jinja2 template reference? The repr (i.e., "%r") representation will at least give you the name of the class which should be helpful in debugging the problem. -- You received this message because you are subscribed to the Google Groups "pocoo-libs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pocoo-libs. For more options, visit https://groups.google.com/d/optout.
