Comment convertir une queyset en chaîne JSON

# Simply wrap the queryset in a list

data = list(queryset.values())

# Hint: need to use .values() not .all()
Terror12