title: Problem sending information between Django template and views using AJAX call
body: <p>I used an ajax post request to send some variable from my javascript front end to my python back end. Once it was received by the back end, I want to modify these values and send them back to display on the front end. I need to do this all without refreshing the page. </p>
  
  <p>With my existing code, returning the values to the front end gives me a 'null' or '[object object]' response instead of the actual string/json. I believe the formatting of the variables I'm passing is incorrect, but it's too complicated for me to understand what exactly I'm doing wrong or need to fix.</p>
  
  <p>This is the javascript ajax POST request in my template. I would like the success fuction to display the new data using alert.</p>
  
  <pre><code>var arr = { City: 'Moscow', Age: 25 };
  
      $.post({
          headers: { "X-CSRFToken": '{{csrf_token}}' },
          url: `http://www.joedelistraty.com/user/applications/1/normalize`,
          data: {arr},
          dataType: "json",
          contentType : "application/json",
          success: function(norm_data) {
              var norm_data = norm_data.toString();
              alert( norm_data );
          }
      });
  </code></pre>
  
  <p>This is my Django URLs code to receive the request:</p>
  
  <pre><code>path('applications/1/normalize', views.normalize, name="normalize")
  </code></pre>
  
  <p>This is the python view to retrieve the code and send it back to the javascript file:</p>
  
  <pre><code>from django.http import JsonResponse
  
  def normalize(request,*argv,**kwargs):
      norm_data = request.POST.get(*argv, 'true')
      return JsonResponse(norm_data, safe = False)
  </code></pre>