How I can add "points = " to this JsonResponse in Django?
My code look like this:
return JsonResponse(data=points, safe=False, json_dumps_params={'indent': 1})
Result :
[ { "x": 0, "y": 1 }, { "x": 0.315397047887207, "y": 0.694608645422627 } ]
what I want to do :
points=[ { "x": 0, "y": 1 }, { "x": 0.315397047887207, "y": 0.694608645422627 } ]