title: Put JSON object in Array after AJAX
body: <p>I do an AJAX where I get a JSON object (questions) : </p>
  
  <pre><code>function questionnaire()
  {
      $.ajax({
  
          type: "POST", 
          dataType: "json",
          url: "/configuration/nacellesquestionnaire",
          success: function(questions)
          {
              displayQuest(questions);
  
              return questions;
          },
          error: function()
          {
              return false;
          }
      });
  }
  </code></pre>
  
  <p>So , with the <code>return questions</code>, I want to put this JSON object in an Array :</p>
  
  <pre><code>$(document).ready(function()
  {
      var questBackup;
      questBackup = questionnaire();
  });
  </code></pre>
  
  <p>The problem : When I check the array <code>questBackup</code> with a console.log(), there are an "undefined" ...</p>
  
  <p>Note : when I do <code>console.log(question)</code> in success AJAX I have the correct JSON object.</p>