I am currently trying to migrate a project from flask over to Django as practice and just to get it working on Django... I was wondering if there is a method within Django that performs the job of flask.jsonify?
If not, how else would you recommend I can emulate the same functionality?
from django.http import JsonResponse
def someView(request):
...
return JsonResponse(someDictionary)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With