title: problem in getting Value from Json Key Value Pair
body: <p>I am following <a href="http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/" rel="nofollow noreferrer">this link</a> to build a Client side repeater.</p>
  
  <p>According to the above link to retrive the value from a Json key-value pair we can use result[i].property,for example</p>
  
  <pre><code>for (var post in msg)
  {     
      var x= msg[post].Date;
      alert(x);
  }
  </code></pre>
  
  <p>Here <code>x</code> returns the date from Json string. When I am trying to use the same with my data, it always returns as <code>undefined</code>. I tried to pop up an <code>alert(msg.d)</code> that shows a nice Json string with all my data. But when I try <code>msg[post].Date(property name)</code> it's always returning <code>undefined</code>. </p>
  
  <p>Please help..</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>From the backend I am returning a generic list and then converting it into Json using the following code.</p>
  
  <p>public static string ConvertToJSON(this object obj)
      {</p>
  
  <pre><code>    DataContractJsonSerializer serializer = new DataContractJsonSerializer(obj.GetType());    
  
      MemoryStream ms = new MemoryStream();
      serializer.WriteObject(ms, obj);
      string jsonobj = Encoding.Default.GetString(ms.ToArray());
      ms.Dispose();
      return jsonobj;
  }
  </code></pre>
  
  <p>then I am appending the returned Json to a stringbuilder and returning it to the Jquery ajax method.The returned Json looks like a string , not an object and hence I am unable to get any value from Json key value pair..</p>