title: VB.net Place JSON from URL result in text box
body: <p>My JSON String</p>
  
  <pre><code>{
  
  "name": "username",
  "place": {
    "name": "placename",
  }    
  </code></pre>
  
  <p>My Code So Far</p>
  
  <pre><code>Dim request As HttpWebRequest
      Dim response As HttpWebResponse = Nothing
      Dim reader As StreamReader
  
      Try
  
          request = DirectCast(WebRequest.Create("http://json-request.com/myjson"), HttpWebRequest)
  
          response = DirectCast(request.GetResponse(), HttpWebResponse)
          reader = New StreamReader(response.GetResponseStream())
  
          Dim rawresp As String
          rawresp = reader.ReadToEnd()
  
          Dim jResults As JObject = JObject.Parse(rawresp)
          Dim results As List(Of JToken) = jResults.Children().ToList()
  
          For Each item As JProperty In results
              item.CreateReader()
              textbox.text = ("placename")) 
          Next
  
      Catch ex As Exception
          MsgBox(ex.ToString)
      Finally
          If Not response Is Nothing Then response.Close()
  
      End Try
  End Sub
  </code></pre>
  
  <p>How could i pull this from a URL and parse the placename in one textbox and the username in another textbox in VB.net please if it helps i am using Visual Studio 2013 And A Windows Form</p>
  
  <p>Any help would be greatly appreciated</p>
  
  <p>Thanks</p>