Hi guys, I have a project that reads a json data and parse it. The program is working properly except that I cannot get its individual rows and view it in separate panels.
Here is my code:
Imports System.Net.Json
Public Class Form2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim parser As New JsonTextParser
Dim o As JsonObject = parser.Parse(TextBox1.Text)
'This will segregate the data from o
For Each f As JsonObjectCollection In o.GetValue
With lv
.Items.Add(f.Item("id").GetValue.ToString)
With .Items(.Items.Count - 1).SubItems
.Add(f.Item("fname").GetValue.ToString)
.Add(f.Item("lname").GetValue.ToString)
.Add(f.Item("address").GetValue.ToString)
End With
End With
Next
End Sub
End Class
I am using System.Net.Json here which can be found here.
Download and install it and add it as reference in your project.
My problem is that, I want to display each record in a separate panel view. See screen shot attachment for a clear detail..
Hope anyone could help me achieve what i want to do.
Thanks