Hi, I read the page on AJAX on the website and it implies I can return a JSONObject directly from an event (if it is called via ajax).
However when I implemented this - I got an error saying it didn't know what to do with a JSON object. It does work if you encode the JSON response via a TextStreamResponse. Is this a bug? - Or am a I missing something?