Ran into this bug this morning... what's the rationale behind JsonResponse
only accepting dict types unless you set safe=False to allow _any_ type?

Surely list/tuple should also be permitted?

There's a test explicitly ensuring lists fail.

I'm not comfortable turning off ALL type safe-guards just so I can send
lists as JSON results.

--
Curtis

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAG_XiSBsM5Dm3FEHDzfF2_9erD8xD-%3DOSeit_zpoWsj%2BCTUOqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to