I have an event that is outputting data via event.renderData(data=mydata, "json")
.
When I access it via the browser, the JSON data is returned as expected. Though if I call the event from within another event, I only get an empty string returned. I save the output like this:
savecontent variable="local.eventResult" {
runEvent(event="mymodule:myhandler.myaction");
}
If I dump the data within the event, it looks ok. I have tried to get the data via return event.renderData(data=mydata, "json");
and returning the data directly, i.e. return mydata;
, without success.
What should I do to get the data as expected?