Good afternoon (o;
I have a JSON returned from one of my servers which looks like:
{
"payments": [
{
"x": "2022-03-09",
"y": "1234.56"
},
{
"x": "2022-03-10",
"y": "1234.56"
},
],
"pickups": [
{
"x": "2022-03-09",
"y": "1234.56"
},
{
"x": "2022-03-10",
"y": "1234.56"
},
]
}
So I use to access the first array “payments”:
Var d as dictionary = ParseJSON(textData)
Var days as dictionary = d.Value("payments")
Where the last line throws the illegal cast exception error when running.
Though not sure why as I followed this snippet from the docs page:
// jsonData contains the actual JSON data:
// {"team":"Red Sox","topplayer":{"name":"David Ortiz", "position":"DH", "uniform number":34}}
Var d As Dictionary
d = ParseJSON(jsonData)
Var topPlayer As Dictionary = d.Value("topplayer")
thanks in advance
richard