I have a site that I need to connect to where I'd grab a JSON file and then parse out the information I need. But I'm having a bit of a hard time as the data is nested... Could someone please assist? I'm using the VBAJSON library to try to parse this..
JSON file looks something like this:
{
record: [
{
Name: "Bob",
Created: "2020/06/18"
},
{
Age: "52",
TableName: "AGE"
},
{
School: "Woodside",
TableName: "School"
}
{
Phone: "Iphone",
TableName: "Phone"
},
]
}
'this is an attempt to start getting the data and parse it but I'm lost...
Sub getjson2()
Dim hReq As New WinHttpRequest
Dim strURL As String, JSON As Dictionary
strURL = "testsite.com/abcd"
hReq.Open "GET", strURL, False
hReq.Send
Dim response As String
response = hReq.ResponseText
Set JSON = JsonConverter.ParseJson(response)
End Sub