Code that is doing my head in:
Sub ParseDailyWeatherData(jsonData As String)
Dim jPaser As JSONParser
Dim DataMap As Map
Dim lstBody As List
Dim HeaderMap As Map
Try
jPaser.Initialize(jsonData)
DataMap.Initialize
DataMap = jPaser.NextObject
HeaderMap.Initialize
HeaderMap = DataMap.Get("Headline")
lstBody.Initialize
lstBody = DataMap.Get("DailyForecasts")
Catch
Log(LastException)
End Try
ShowReady(True)
End Sub
I am just at a loss, I almost never ask for help but in this instance I am bamboozled
In the code above, dataMap looks like a map, as you can see below, but doesn't act like one?
It is the last thing on a Friday so there is a high probability I'm just doing it all wrong
From what I can see the Headline map item is another map, and the DailyForecasts map item is a list
I just cant understand why when I get the Headline and DailyForecasts items into their respective variables, the variables are empty.
I know I must be doing something fundamentally wrong, but I cant see it.
Can someone please help me out?