How to apply substring in json
<p>I just think this is my variable getting data from  database <br/>
I declare Description properties in separate class</p>

<pre><code>public class Description
{
  public int DesID{set;get;}
  public string Description{
} 
</code></pre>

<hr>

<p><strong>C# Coding : Data</strong></p>

<pre><code>[WebMethod]    
    public static List&lt;Description&gt; Data()
    {
      List&lt;Description&gt; listDescription = new List&lt;Description&gt;();
      Description d1=new Description()
       {
         DesID=1,
         Description ="ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz";
       };
      Description d2=new Description()
       {
         DesID=2,
         Description ="thanks for your response"
       };
    listDescription.add(d1);
    listDescription.add(d2);
    }
</code></pre>

<p><strong>JSON :</strong></p>

<pre><code> $(document).ready(function () {
            $(function () {

                $.ajax({

                    contentType: 'application/json; charset=utf-8',
                    url: 'WebForm1.aspx/Data',
                    dataType: 'json',
                    method: 'post',
                    success: function (data) {
                        for (var i = 0; i &lt; data.d.length; i++) {

                            $('#divdisplay').append("&lt;div&gt;Description ID : "+ data.d[i].DesID+"&lt;br/&gt;Description : "+data.d[i].Description+&lt;/div&gt;");
                        }
                    },
                    error: function (result) {
                        alert('Error');
                    }
                });

            });
</code></pre>

<hr>

<h2>Important Note :-</h2>

<p>I already tried this below code, but it is not working </p>

<pre><code>$(data.d[i].Description).val().substr(1,5); And
data.d[i].Description.val().substr(1,5)
$(data.d[i].Description).val().substring(1,5); And
data.d[i].Description.val().substr
</code></pre>