0

It is possible to return raw response from JavaLite.io Activeweb controller without chaining it with embedded FreeMarker template engine ?

1 Answers1

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