I use Get Browser Data → Deserialize JSON and get a jObject object sessionData. While using For Each to iterate each cookie I get an error:
For Each: Unable to cast object of type ‘Newtonsoft.Json.Linq.JObject’ to type ‘System.Collections.Generic.KeyValuePair`2[System.String,Newtonsoft.Json.Linq.JToken]’.
How to loop those cookies and get their names and values?
Welcome to the community
Can you try to degrade your system packages from manage packages please…to 22.10 …
Then you would get option to change the type argument in for loop properties…
Where you can cast the type as required
Are you getting a jarray in cookies or different jobjects again?
Cheers
Thanks, this works for me.
So when can I upgrade to the latest package?
1 Like
As of now in latest the type argument is not displaying…once its fixed we can…or we have an alternate method of using the lastest but use cast method everytime to cast required type instead of using type argument
So we need to wait for upgrade as of now or use type cast or use 22.10
Cheers