title: How to output json array value in ajax success?
body: <p>I have post the data and return the value with json_encode and get that in ajax success stage. but i can't out that data value in specific input. Here is my html input. The return value are show in console and alert box as below.</p>
  
  <blockquote>
    <p>{"status":"0","data":[{"user_id":"1","start_time":"00:00:00","end_time":"01:00:00","date_select":"2017-03-23","admin_flag":"0","interview_plan_staff_id":"1","interview_plan_staff_name":"Administrator","user_name":"\u304a\u306a\u307e\u30481"},{"user_id":"31","start_time":"00:00:00","end_time":"01:00:00","date_select":"2017-03-23","admin_flag":"0","interview_plan_staff_id":"1","interview_plan_staff_name":"Administrator","user_name":"uchida"}]}</p>
  </blockquote>
  
  <pre><code>&lt;input type="text" id="admin_id" class="form-control"&gt;
  </code></pre>
  
  <p>Here is my ajax</p>
  
  <pre><code>function cal_click(cal_date){
     var calDate = cal_date
     var date_format = calDate.replace(/-/g, "/");
     var base_url = &lt;?php base_url(); ?&gt;
     $.ajax({
      type: "post",
      url: "&lt;?php echo base_url('Admin_top/getcal');?&gt;",
      data: {calDate:calDate},
      cache: false,
      async: false,
      success: function(result){
  
              console.log(result);
              alert(result);
  
          }
  
      });
  }
  </code></pre>