title: How to receive dictionary in post data python
body: <p>I'm trying to send array as a parameter to the api which is using python and <code>django</code> framework.</p>
  
  <p>Here's my client side code that is being used to access the <code>api</code>:</p>
  
  <pre class="lang-java prettyprint-override"><code>$.ajax(
      type: 'POST',
      url:    'http://example.com/api/users',
      data:   {user:{name:'Rohit Khatri', age:20, father_name:'S.K'},type:'info'},
      complete: function(response) {
          console.log(response);
      }
  );
  </code></pre>
  
  <p>Here's the view where I'm trying to access the request parameters</p>
  
  <pre class="lang-py prettyprint-override"><code>def get_users(request):
      print(request.POST.get('ids'))
  </code></pre>
  
  <p>and when I try to access <code>ids</code> parameter, It gives None.
  If anyone has faced the same problem, please help me.</p>