title: Pass Array using AJAX in Django
body: <p>I have an array called metrics and im trying to pass it to backend with AJAX but Im only getting the last values of the array <code>7,8,9</code> . I want to pick up the whole array .Any idea how? Any help is appreciated.</p>
  <p><strong>html</strong></p>
  <pre><code> var metrics = [
    [1,2,3],
    [4,5,6],
    [7,8,9], 
  ];
  
   $.ajax({
          type : 'GET' , 
          url : &quot;...&quot;,
          data : {&quot;metrics[]&quot;: metrics },
      })
  </code></pre>
  <p><strong>views.py</strong></p>
  <pre><code>def Sensor_Metrics(request):
      if request.is_ajax and request.method == &quot;GET&quot; : 
          metrics = request.GET.get(&quot;metrics[]&quot;)
          print(metrics)
      return JsonResponse({&quot;error&quot;: &quot;&quot;}, status=400)
  </code></pre>