title: How to remove double quotes from json_encode in php?
body: <p>code:</p>
  
  <pre><code>&lt;?php
      if(!isset($candidate_id))
      {
          header("location:".base_url()."login");
      }
      $this-&gt;db-&gt;select('event,event_title,description,s_date');
      $this-&gt;db-&gt;from('event');
      $this-&gt;db-&gt;where('candidate_id',$cid);
      $this-&gt;db-&gt;order_by('s_date','desc');
      $query = $this-&gt;db-&gt;get();
      if($query-&gt;num_rows() &gt; 0)
      {
          $result = $query-&gt;result_array();
          $record = array();
          foreach($result as $row)
          {
              $record[] = $row;
          }
          echo json_encode($record,JSON_NUMERIC_CHECK);
      }
      else
      {
          $this-&gt;session-&gt;set_flashdata('no_event',"&lt;p&gt;No event Added&lt;/p&gt;");
      }
  ?&gt;
  </code></pre>
  
  <p>current output: </p>
  
  <pre><code>[{"event":"2019-03-06","event_title":"meeting","description":"meeting with xyz","s_date":"2019-03-04"}]
  </code></pre>
  
  <p>expected output:</p>
  
  <pre><code>[{event:"2019-03-06",event_title:"meeting",description:"meeting with xyz",s_date:"2019-03-04"}]
  </code></pre>
  
  <p>I am creating a simple JSON API using json_encode() function. Now, API I created successfully but the output is unexpected as I mention above. Now, What I actually want I also mention above. So, How can get I expected output? Please help me.</p>
  
  <p>Thank You</p>