Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

In order to allow non-dict objects to be serialized set the safe parameter to False.

return JsonResponse([1, 2, 3, 4], safe=False)
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #In #order #objects #serialized #set #safe #parameter
ADD COMMENT
Topic
Name
5+4 =