Workflow
Outputting
To output your items to Alfred:
$workflow->output();
The output method will automatically echo the workflow's JSON, if you would rather store the JSON as a variable and echo it yourself later:
$json = $workflow->output(false);
echo $json;