title: php array into json and show it on ajax sucsess function
body: <p>how to convert below type of array into Json in php and how to get it from ajax</p>
  
  <pre><code>array(4) {
    ["START_TIME"]=&gt;
      string(19) "2017-12-19 08:34:01"
    ["END_TIME"]=&gt;
      string(19) "2017-12-19 10:34:07"
    ["DESCRIPTION"]=&gt;
      string(30) "MORNING TEA (AFTER BREAKFAST )"
    ["INTERVAL_ID"]=&gt;
      string(1) "2"
  }
  </code></pre>
  
  <p>here is the json i got 
  [{"START_TIME":"2017-12-19 09:31:59","END_TIME":"2017-12-19 10:44:04","DESCRIPTION":"BREAKFAST","INTERVAL_ID":"1"},{"START_TIME":"2017-12-19 08:34:01","END_TIME":"2017-12-19 10:34:07","DESCRIPTION":"MORNING TEA (AFTER BREAKFAST )","INTERVAL_ID":"2"}]
  how to show it on  ajax sucess funtion</p>