Currently, OpenWhisk supports returning a JSON object only, e.g.
# wsk action invoke hello -r { "greeting": "Hello stranger!" }
It is necessary to support returning an array too as an array is also a proper JSON object, e.g.
# wsk action invoke hello-array -r [ "a", "b" ]
The sequence action should be considered support as well.
This POEM proposes a new feature that allows user to write their own action which supports an array result. So actions would be able to return a JSON object or an array.
Make controller and invoker support both a JSON object and an array result.
All runtime images should support an array result. e.g.
wsk
CLI needs to support parsing an array result when executing actions.wsk
CLI needs to support parsing an array result when getting activations.