I've implemented a method in API (http.php) in order to get ticket history by its ID. It works like a charm except that I want to return this data in application/json rather than text/html. How to do this? How to set header to json?
Personally I think that this is not really an osTicket issue, rather than an issue where to put what code to return it as JSON instead of text/html ;)
well this is not a response to the problem :|Does anyone have any suggestion on how to return JSON response on osTicket? Where should I do that?