title: JQuery - AJAX - How to access the content of response?
body: <p>My AJAX call keeps returning response object instead of the expected value</p>
  <pre><code>  function check_now(word)
      {
             var x =  $.ajax({
              url: &quot;{% url 'checker' %}&quot;,
              data: {
                     'word': word,
                     'csrfmiddlewaretoken': '{{ csrf_token }}',
                      },
              async:false,
              type: &quot;POST&quot;,
              dataType: 'json',
              statusCode: {
                   200: function (response) {
                        console.log(response.is_command);
                        return response.is_command;
                          }
                   }
          });
          return x;
      }
  </code></pre>
  <p>Expected result is a boolean. Output of <code>console.log(response.is_command)</code> is printed correctly as <code>false</code>. But returned value <code>x</code> is still an object. I can't access the <code>is_command</code>. How to access it?</p>