title: JSON Parsing in c#. The Json string is in a javascript file
body: <p>I am facing  an issue in parsing a JSON data which is retrieved from a javascript file (say xyz.js) 
  The file size is about 10mb and only one JSON string is present in it. </p>
  
  <p>We were using javascript directly to parse this file, I want to know whether we have any C# classes to parse this file or not? </p>
  
  <p>example of the JSON string is </p>
  
  <pre><code>var JSONString = {
      Level1:{
          DateTime:{
                date:'Wed Sep 14 14:19:32 CDT 2011'
          },
          information:{
                url:'http:\\www.google.com'
          },
          RepetitiveLevel:[
              {
                  ids:{
                      courses:[
                          "BE",
                          "MS"
                      ]
                  },
                  SubRepetitiveLevels:{
                      DetailedLevel:[
                          {
                              name:"Trial 1",
                              type:"blah",
                              latest:"no",
                              version:"1",
                              description:"This is a test 1.",
                              recommendation:"blah",
                              prerequisite:"&lt;strong&gt;WARNING!&lt;/strong&gt; xyz",
                              releasedate:"2012-06-18T15:38:55.79",
                              support:{
                                  degree:[
                                      "MSC",
                                      "BSC",
                                      "HSE"
                                  ]
                              },
                              OperatingSystem:{
                                  os:["Win 2008 x64"
                                  ]
                              },
                              previousversions:{
                                  version:[
                                  ]
                              },
                              allversions:{
                                  version:[
                                      "1",
                                      "2",
                                      "3"
                                  ]
                              },
                              ftppath:"ftp://",
                              files:{
                                  file:["note1.txt"
                                  ]
                              },
                              filesizes:{
                                  filesize:["5MB"
                                  ]
                              },
                              checkSum:{
                                  md5:["abc"
                                  ]
                              },
                              note:"&lt;P&gt;&lt;STRONG&gt;NOTE: &lt;/STRONG&gt; NOTE 1 &lt;/LI&gt;&lt;/UL&gt;&lt;/OL&gt;",
                              fix:"&lt;P style=\"MARGIN-TOP: 4pt; FONT-SIZE: 10pt; MARGIN-BOTTOM: 0pt; COLOR: #000000; FONT-FAMILY: Arial\"&gt; xyz &lt;STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;"                           
  
                          },
                          {
                              name:"Trial 2",
                              type:"blah",
                              latest:"yes",
                              version:"2",
                              description:"This is a test 2.",
                              recommendation:"blah",
                              prerequisite:"&lt;strong&gt;WARNING!&lt;/strong&gt; xyz",
                              releasedate:"2012-06-18T15:38:55.79",
                              support:{
                                  degree:[
                                      "MCA",
                                      "BCA",
                                      "BE"
                                  ]
                              },
                              OperatingSystem:{
                                  os:["Win XP"
                                  ]
                              },
                              previousversions:{
                                  version:[
                                  ]
                              },
                              allversions:{
                                  version:[
                                      "4",
                                      "5",
                                      "6"
                                  ]
                              },
                              ftppath:"ftp://",
                              files:{
                                  file:["Note2.txt"
                                  ]
                              },
                              filesizes:{
                                  filesize:["2MB"
                                  ]
                              },
                              checkSum:{
                                  md5:["abc"
                                  ]
                              },
                              note:"&lt;P&gt;&lt;STRONG&gt;NOTE: &lt;/STRONG&gt; NOTE 2 &lt;/LI&gt;&lt;/UL&gt;&lt;/OL&gt;",
                              fix:"&lt;P style=\"MARGIN-TOP: 4pt; FONT-SIZE: 10pt; MARGIN-BOTTOM: 0pt; COLOR: #000000; FONT-FAMILY: Arial\"&gt; ahahah &lt;STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;"                           
  
                          }
  
  
                      ]
                  }
              }
          ]
      }
  }
  
  
  
  The tag named "RepetitiveLevel" will be repeating more than 10 times 
  Under this tag, there will be repetitions of "SubRepetitiveLevels", which in turn contains more than one entry for "DetailedLevel". 
  This kind of JSON string fails for Newtonsoft.Json.JsonConvert.DeserializeObject 
  
     I know this is a little bit confusing, but we are not finding any other option. 
  </code></pre>
  
  <p>Any help will suffice. Thanks in advance. </p>