By default Django's JsonResponse
class doesn't allow non-dict objects like arrays. I've looked at the documentation but it never explains why that'd be unsafe or otherwise undesired.
Are there any good reasons only to use dict objects? I found something about old security vulnerabilities but as far as I can tell that's all patched up now.