Q:

json not outputting

I'm running this code in php
while ($row = mysql_fetch_array($result))
{
   $arr = array("joke" => $row['joke'], "date" => $row['date'], "rating" => $row['rating']);    
   echo json_encode($arr);

}

but there's no output. I am running php 5.3.6

A:

nvm I figured it out. the way to do this is to use sql2json

