Bolt tasks can return a Hash or a raw String. When a raw string is returned, it is wrapped in a JSON object and the output is placed in an _output key, so in any case, stdout contains a JSON representation of a data structure containing the return value of the task.
This is accessible through $result['data']['stdout'].parsejson which is a bit cumbersome.
Bolt tasks can return a
Hash
or a rawString
. When a raw string is returned, it is wrapped in a JSON object and the output is placed in an_output
key, so in any case, stdout contains a JSON representation of a data structure containing the return value of the task.This is accessible through
$result['data']['stdout'].parsejson
which is a bit cumbersome.