title: jquery shows [object object] instead of array
body: <p>Just trying to show in the view the array which I got from controller via ajax but it shows [object Object],[object Object] instead of array. Please check my js file below:</p>
  
  <pre><code>$(".faq_title").click(function(){
  
      var title = $(this).text();
  
      $.post('faq/get_faq_data', { title: title }, function (data) {
  
         document.write(data);
          }, "json");
  });
  </code></pre>