APISonar


net.javapla.jawn.core.Responses.json

> net > javapla > jawn > core > Responses > json
net APIs javapla APIs jawn APIs core APIs Responses APIs json APIs

Example 1
public void router(Routes routes) {
        routes.GET().route("/queries").to(DbController.class, "queries");
        routes.GET().route("/updates").to(DbController.class, "updates");
        
        routes.GET().route("/json").with(Responses.json(new Message(message)));
        routes.GET().route("/plaintext").with(Responses.text(bytemessage));
    }