title: How to convert ajax retrieved object to string in jquery
body: <p>I'm looking to make an object containing latitudes and longitudes of various places such as <code>[["Second Event",19.0554748,72.8497017],["Demo Event",19.2097381,72.8737017]]</code>.</p>
  
  <p>I'm successful of making this in <code>php</code> by using <code>json_encode()</code> function. How do I retrieve it in the callback function. I've tried the following:</p>
  
  <pre><code>$.post('maps1.php',{},function(data){
      alert(data);
      markers=JSON.stringify(data);
  },"json");
  alert(markers);
  </code></pre>
  
  <p>However this doesn't seems to work. What should I do?</p>