None objects encoded to JSON as "None" string

Issue #15 resolved
Alan Moore created an issue

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)

  1. Maciej Wisniowski repo owner

    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

  2. Log in to comment