This is my current PHP code
while ($row = mysql_fetch_array($result))
{
$post = new Post();
$post->setId($row['post_id']);
$post->setBody($row['post_body']);
$post->setImage($row['post_imgurl']);
$post->setStamp($row['post_stamp']);
$postList[] = $post;
}
return array('post'=> $postList);
}
and this is its output JSON.
How can i make my JSON more readable like below and remove /
the character?
More readable output: