Is it possible at all?
I need to process some backend data, but instead of serving html page with results, I need to output it as json, for one url. How to prepare component to do that?
So the app serves standard html pages now. All of the components process some backend data first, and then use it to display results in html.
But I have one case where I need to output json, for further processing in another, external application. So json component will get data from the backend, just as others, and process it somehow. But how to output that processed data as json, with Content-Type: application/json http header?