title: json encode displaying "null" on body
body: <p>My code is shown below, I can display the body text well if I echo it, but when I try encoding it, it returns null</p>
  
  <pre><code>    $con=mysqli_connect("localhost", "root","","eservices"); 
      $sql="select * from news order by id DESC";
      $result=mysqli_query($con,$sql);
      mysqli_set_charset($con,"utf8");
      $news=array();
      while($row=mysqli_fetch_array($result)){
      array_push($news, array("headline"=&gt;$row[2],"body"=&gt;$row[3]));
      }
      echo json_encode(array("news_response"=&gt;$news));
      mysqli_close($con);
  </code></pre>