title: VB.Net Convert JSON data to Variables
body: <p>I am revisiting VB.NET after years of not doing anything with it.  SO take it a little easy on me, also I have googled this and searched through Stackoverflow and have not found something to help.</p>
  
  <p>I have this JSON coming in from a web API.</p>
  
  <pre><code>Imports Newtonsoft.Json
  Imports Newtonsoft.Json.Linq
  
  Dim rawresp As String
  rawresp = "[{"Var1":"data1","Var2":"data2","Var3":"data3","Var4":"data4"}]"
  </code></pre>
  
  <p>I have tried this way of doing it</p>
  
  <pre><code>Dim json As JObject = JObject.Parse(rawresp)
  </code></pre>
  
  <p>and I have tried this way</p>
  
  <pre><code>Dim obj = JsonConvert.DeserializeObject(Of Vars)(rawresp)
  
  Public Class Vars
     Public Property Var1 As String
     Public Property Var2 As String
     Public Property Var3 As String
     Public Property Var4 As String
  End Class
  </code></pre>
  
  <p>I am really having trouble seeing that deserializing json is this difficult, I must be missing something basic.</p>