title: Django + React axios POST cant access Json properties
body: <p>I created two abjects that need to be treated separated in the backend, and sent it to backend with:</p>
  <pre><code>const order = {
      order_id: 1,
      customer: {
          name: &quot;Jonas Illver&quot;
          age: 18
      }
  }
  
  const car = {
      model: 'XHL'
      brand: 'Toyota'
  }
  
  const postData = {
      order: order,
      car: car
  }
  
  const res = await axios.post(&quot;orders/shipping/create&quot;, JSON.stringify(postData));
  console.log(res);
  </code></pre>
  <p>And here I return the response:  <em>views.py</em></p>
  <pre><code>@api_view(['POST'])
  @permission_classes([IsAuthenticated])
  def shipping_create_order(request):
      if request.method == 'POST':
          return JsonResponse(request.POST)
  </code></pre>
  <p>Here's what the console.log prints:</p>
  <pre><code>res.data // {&quot;order:&quot;{&quot;order_id&quot;: 1, &quot;customer&quot;: {&quot;name&quot;: &quot;Jonas Illver&quot;, &quot;age&quot;: 18}}, &quot;car&quot;: **car object content**}
  </code></pre>
  <p>The problem is that if I try to access those data in my django view, I always got a 500 error<br />
  I tried accessing it via:</p>
  <pre><code>order = request.POST['order']
  # and also
  data = json.loads(request.POST)
  order = data['order']
  # also
  order = request.POST.get('order')
  </code></pre>
  <p>None os the above approaches worked, the only one that doesn't occurs an 500 error is the last one, using the <code>POST.get</code>, but as soon as I add the <code>if not order: return HttpResponse(&quot;No order&quot;)</code> line, it always return &quot;No order&quot;</p>
  <p>How can I access specific info from the request.POST? Am I doing something wrong with the axios request?</p>