Below is my JsonResponse of type JsonArray and I want to iterate through this using for each loop. Can you please help if you have solved similar kind of problem?
I want the Output to be be printed for each line as below:
Also, please see the below screenshot and see what I am missing.
Use this Assign acticity inside the For each loop
Use Assign activity
RHS : item.GetValue(“predictions”).ToString
You have to deserialize json for each iteration and print the Jobj(“predections”).ToString to get your desired output
refer below image for more reference
Hope is solves your issue
Update us whether you got your desired solution or not
in general the main steps are mentioned above
- set the typeargument from for each activity to JObject
- retrieve the value with yourLoopVar(YourPropertyName).Value(Of YourDataType) using the preferred Value(Of…) method
item(“predictions”).Value(of String) - getting String
Thanks @Gokul001 @Robinnavinraj_S @ppr .
All the solutions you guys gave are working fine.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.