Solution
The execution results for the steps in a sequence are captured in the array of Result, Locals.ResultList. The information contained in this result array can be converted into JSON data by following the below steps:
1.Open the sequence whose results you want to convert to JSON.
2. Put a breakpoint at the end of the sequence, i.e. at the “<End Group>” marker of the “Cleanup” group.
3. Execute the sequence with or without a process model.
4.When the execution pauses at the above breakpoint, add the following expression in the Watch View:
Locals.ResultList.GetFormattedValue(“”, 0x1001)
5. The value of this expression is the JSON equivalent of the sequence execution result.
6. Right click on this expression and select “Copy Value” to copy the JSON data into the clipboard.