Show More
@@ -238,6 +238,7 b' def indent(text, prefix):' | |||||
238 |
|
238 | |||
239 | @templatefilter('json') |
|
239 | @templatefilter('json') | |
240 | def json(obj, paranoid=True): |
|
240 | def json(obj, paranoid=True): | |
|
241 | """Any object. Serializes the object to a JSON formatted text.""" | |||
241 | if obj is None: |
|
242 | if obj is None: | |
242 | return 'null' |
|
243 | return 'null' | |
243 | elif obj is False: |
|
244 | elif obj is False: |
General Comments 0
You need to be logged in to leave comments.
Login now