Creating a JSON response using Django and Python The Problem You want to pass a JSON response from your Django backend to use with AJAX or a frontend web framework.