Array.Object is not usable as an Flow/Subflow output in a script


When you have an output of a flow/subflow of type Array.Object, its output appears unusable when the flow is executed from a script.

It appears the conversion of the array of objects into a simple JSON structure is failing/not happening, and instead what is output from the flow is a raw dump of some kind of object which is unusable as an output of the flow/subflow in a script.

The output is different than expected.  Checked against the output of an action and the output is different.  The output includes the entire serialized version of the CO.  This can be seen in Orlando as well.

Steps to Reproduce

1. Create a subflow with an array.object output
2. Manually add two objects inside the array object
3. Call subflow from script
4. Inspect output


If you are able to upgrade, review the "Where Found/Fixed" and "Fix Targets" tab of the problem record to determine whether any versions have a planned or permanent fix.

Related Problem: PRB1419217