After trying a lot sorry for asking such a trivial question.
Given below screenshot consist of a data that I have successfully received from the server.

I would like to know how to traverse through the data since whenever I try to cast it to something and try a foreach it gives an error.
The actual data sent from the server is a List() type.
I want to know how to cast it to same type and use it here.
I tried casting but it says unexpected token here.
Any help is appreciated.
JSON.parse return type depends on the
Stringyou try to parse. See the doc :From your screenshot, it seems that the return value is a List. You can do something like the following to use it (did you notice the typo in your commented code –
.fore) :