title: How to use JSON with Jquery?
body: <p>I'm working at an app which would make a POST ajax request to a PHP script on my server. The script would query the database and return a row of records, as an array. (One array for each row, containing elements such as id, title, etc). I then want to use <code>json_encode()</code> to encode this array, and pass it back to the javascript which will use it to display the records.</p>
  
  <p>1) How can I return the JSON encoded string to the javascript?
  2) How will the javascript loop through the rows and access their fields?</p>