Deserialize json token with more tokens

Hello all,

I have the following JSON structure and I would like to know how can I get the 2 “dates”:

If I use: varjobject.selecttokens(“forescast.forescastday.dates”).ToString I am getting an error. Also, I tried using a for each item varjsonobject(“forecastday”).value(of jobject)

{
“forescast”: {
“forecastday” : [
{
“date”: “2022-02-21”,
},
{
“date”: “2022-02-22”,
}
]
}
}

one of many options
grafik

Hello @ppr,

Thanks for the fast answer!!

I am writing the code, but i cant put . ToArray, i just can put ToString…

here we had a typo on forescastday vs. forecastday from JSON
grafik

And can do also for for the loop:

ensure also:
grafik

1 Like

Many thanks! :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.