- changed status to resolved
None objects encoded to JSON as "None" string
Issue #15
resolved
As per the title, when a queryset contains fields that return None
, this gets encoded to the JSON response as a literal string "None".
It seems to me that an empty string or javascript null would make more sense there. Or, maybe it makes more sense to allow the user to specify a string to use for None
objects.
Comments (1)
-
repo owner - Log in to comment
There is a none_string parameter that can be used to customize how None is handled. Currently, None is replaced with empty string by default