could you please help me solving issue, i am trying to get the value from the last occurrence of item in each loop.
for example, i have a json,
if the json object contains xyz, then from the last occurrence of xyz get the value from endtime.
could somebody please help here
You just want to get only the last item??
Then instead of loop, you can use the index of the item to fetch it.
@Rahul_Unnikrishnan , thank you for your response, but that last value is dynamic.
You can save your current json object in a temporary variable right before you end the for loop.
In the next run, you will have access to the current and previous json objects.
1. Your logic with current json object
2. Save your current json into a temporary variable
say (PreviousJObject) within the for loop scope.
Next iteration continues.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.