secretary icon indicating copy to clipboard operation
secretary copied to clipboard

Auto-Filter json null (Python None)

Open tigerfoot opened this issue 7 years ago • 0 comments

When you get a json extracted from database or other sources, it is not rare that some field are empty (aka null). Python JSONDecoder decode them as None Python object. But in document, I guess the majority would like to see (nothing) when its None in place of 'None' remplacing the Jinja var.

Perhaps I've missed a simple filter here, but I can't see any good reason to print None

tigerfoot avatar Jan 17 '18 15:01 tigerfoot