333334335336337338339
* Render a 200 OK application/json response * * @param jsonString The JSON string */ protected static void renderJSON(String jsonString) { throw new RenderJson(jsonString); }
342343344345346347348
* Render a 200 OK application/json response * * @param o The Java object to serialize */ protected static void renderJSON(Object o) { throw new RenderJson(o); }
352353354355356357358
* * @param o The Java object to serialize * @param type The Type informations for complex generic types */ protected static void renderJSON(Object o, Type type) { throw new RenderJson(o, type); }
362363364365366367368
* * @param o The Java object to serialize * @param adapters A set of GSON serializers/deserializers/instance creator to use */ protected static void renderJSON(Object o, JsonSerializer<?>... adapters) { throw new RenderJson(o, adapters); }