title: JSON.NET is throwing 'additional text found in JSON string after finishing deserializing object."
body: <p>I have a Javascript control that returns JSON string as an AJAX to the server. But when I try to save, Newtonsoft is throwing the exception</p>
  
  <blockquote>
    <p>Additional text found in JSON string after finishing deserializing object.</p>
  </blockquote>
  
  <p>I tried building a very simple JSON as below which threw this exception</p>
  
  <pre><code>[{
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }, {
      "TopicName": "Hello World",
      "OrdinalOrder": 0
  }]
  </code></pre>
  
  <p>And the API I am invoking is </p>
  
  <pre><code>DataSet dsTopics = JsonConvert.DeserializeObject&lt;DataSet&gt;(strTopicset);
  </code></pre>
  
  <p>where strTopicSet contains the above string. And when I paste the above string in <a href="http://www.jsonlint.com/" rel="noreferrer">http://www.jsonlint.com/</a> it says Valid JSON. </p>
  
  <p>Can some one guide me where I am going wrong. I did go through StackExchange forums on Newtonsoft and the typical error but could not zero in on the exact cause of this.</p>
  
  <p>I am using 9.0.1.19813 version of Newtonsoft.</p>