title: Converting object literal javascript to common language c#
body: <p>How to take the items of address of this code using c# programming language. I have used Newstonsoft.Json.JsonConvert.DeserializeObject(Headerdata);
  but it was errror.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;script&gt;
    var Headerdata = {
      config : { debug : false }
      data :{
            "UserData" : {"Name":"Mahtub","server":" mainSever", "isAdmin":true },
            "mainData" : {
              "id": 02134346546 ,
              "unitData" :{
                "units" :6,
                 "pageData":{
                   "UserName":"Admin",
                     "Address":[
                       "city":"eastJava",
                       "country":"Indonesia"
                     ]
                 }
               }
           }
      
      }
    }
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>