title: Python flask request returns undefined values
body: <p>I want to pass array to Python Flask but I got empty result or b'undefined=&amp;undefined=&amp;undefined='. Here is my code 
  Javascript</p>
  
  <pre><code>var test = [1, 2, 3];
    $.ajax({
          url: '/table',
          data : test,
          type: 'POST',
          success: function(response) {
              console.log(response);
          },
          error: function(error) {
              console.log(error);
          }
      });
  </code></pre>
  
  <p>and Python code</p>
  
  <pre><code>app.route('/table', methods = ['POST'])
  def table():
      #print(request.values)
      print(request.get_data())
      return 'got this'
  </code></pre>