hello guys hope you are doing well
I am trying to make a highchart but I found a problem in the view function so my chart doesn't show becuase of that
view function
def jsonDepend(request):
dataset = mail_item_countries_depend.objects.all().values('exped','destin','count')
data = list(dataset)
return JsonResponse(data, safe=False)
my views function show something like this : [{"exped": "MA", "destin": "AL", "count": 2}, {"exped": "MA", "destin": "BS", "count": 1}]
how can I store it like that : [["MA", "AL", 2], ["MA", "BS", 1]]