It is possible to return raw response from JavaLite.io Activeweb controller without chaining it with embedded FreeMarker template engine ?
Asked
Active
Viewed 24 times
1 Answers
0
yes, this is easy:
public void index() {
respond("{\"success\":true}").contentType("application/json").statusCode(200);
}
In other words, the method respond()
will do exactly what you need.

ipolevoy
- 5,432
- 2
- 31
- 46