title: How to convert ajax json post request from Jquery to Python/Django dictionary
body: <p>I am trying to convert an AJAX request retrieving JSON from JS to Python's dictionary in Django, but unsuccessfully. Please help.</p>
  
  <p>This is the original JS code:</p>
  
  <pre><code>myJSON = JSON.stringify(myJsObject);
  
  // POST - send JSON data to Python/Django server
  $.ajax({
    url: "/savemyexposuresituation",
    type: "POST",
    datatype: 'json',
    data: myJSON,
    async: false,
    success: function() {
      alert('Your data is saved :)');
    },
    error: function() {
      alert('Error occured :(');
    }
  });
  }
  </code></pre>
  
  <p>This is the Django side:</p>
  
  <pre><code>def saveExposureSituation(request):
  
  #get es data - JSON file
  fromJs = request.POST
  
  fromJs = json.loads(fromJs)
  </code></pre>
  
  <p>All I get is <code>JSON object must be string, not QueryDict</code>. I tried to convert this QueryDict to something else unsuccessfully.</p>