title: read json array data from ajax response
body: <p>Read json data value.<br>
   Getting the following result(json encoded)</p>
  
  <pre><code>    [{"client_id":1,"client_first_name":"Pooja"}]null
  
      how can i read "client_first_name" value. 
          $.ajax({
                      type: "POST",
                      data: {id: clientid},
                      dataType: 'json',
                      url: webURL + "/invoice/clientdetail/",
                      success: function(data)
                      {
                          var res = json_encode(data);
  
                      }
              });
  
   how can i read "client_first_name" value 
  </code></pre>
  
  <p>*data- getting json array, how can i read particular value.</p>