title: How to modify or display JSON object using jquery and mvc Model
body: <pre><code>var dataToSend = '@Html.Raw(Json.Encode(Model.PageInput))';
  </code></pre>
  
  <p>my <code>dataToSend</code> contains below data :</p>
  
  <pre><code>"{"id":"1","name":"stackoverflow","count":25}"
  </code></pre>
  
  <p>How can I access the data?</p>
  
  <p>I've tried the following :</p>
  
  <pre><code>alert(dataToSend.id)
  </code></pre>
  
  <p>or</p>
  
  <pre><code>alert(dataToSend[0].id)
  </code></pre>
  
  <p>or</p>
  
  <pre><code>alert(dataToSend[1].id)
  </code></pre>
  
  <p><strong>All outputs</strong>: <code>undefined</code></p>
  
  <p>doesn't working. But why?!!!</p>