title: Parse json string to object without using any third party library in vb.net
body: <p>I'm trying to use <code>JavaScriptSerializer</code> to parse some json string to create objects. I'm thinking about implementing something like this but no luck on my end...</p>
  
  <pre><code>Dim object As New SomeObject
  Dim js As New JavaScriptSerializer
  someObject = js.Deserialize(Of Somebject)(jsonstr)
  object1.var1 = someObject("somekey")
  </code></pre>
  
  <p>where <code>jsonstr</code> is data in json format. I can't use any third party library like <code>newtonsoft.json</code> etc.</p>
  
  <p>edit: I made some progress, given my class e.g. has property "name" and my json has key "name" as well it will pass on the string to objects property with whatever value the json file has.  </p>
  
  <pre><code>Dim object As SomeObject = js.Deserialize(Of SomeObject)(jsonstr)
  Dim name As String = object.name //object now holds value for name
  </code></pre>
  
  <p>but if my json is like this. How can I get name in the following?</p>
  
  <pre><code>  "value" : {
    "validationFactors" : [
       {
          "name" : "remote_address",
          "value" : "127.0.0.1"
       }
    ]
  </code></pre>
  
  <p>}</p>
  
  <p>If I call Deserialize to get name for e.g I get MissingMethodException
  Do I need to change my dummy object and if so how? Thanks </p>