title: Ajax call return list from python flask approute
body: <p>I am using ajax call to post some data and now i need to return a python list from approute back to html. how i can do this. here is my code</p>
  
  <pre><code>                       $('#stop').submit(function(){
   id = id
   var services = $('#service').val()
   var extra  = document.getElementById('More').value
   $.ajax({
       type: 'post',
       url: "/stopservice/"+id,
       cache:false,
       async:true,
       data: {service: JSON.stringify(services),
              extra: JSON.stringify(extra),
       },
       success: function(data) {
           alert(data)
  
       },
       error: function(data)
       {               $.unblockUI();
           alert(data)
       }
   });
   return false
        });
         });
  </code></pre>
  
  <p>and here is my approute.
   listofdata = finallist
   return listofdata</p>
  
  <p>So basically listof data is a python list..this the the return value from approute. But i am not able to get this data in ajax.,any help</p>