package katazon;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import spark.ResponseTransformer;

import static spark.Spark.get;
import static spark.Spark.post;
import static spark.SparkBase.port;

/**
 * @author <a href="http://twitter.com/aloyer">@aloyer</a>
 */
public class HttpServer {
    private static final Logger logger = LoggerFactory.getLogger(HttpServer.class);

    public static void main(String[] args) {
        port(1337);
        configureRoutes();
    }

    private static void configureRoutes() {
        Gson gson = new GsonBuilder().setPrettyPrinting().create();
        ResponseTransformer asJson = new JsonResponseTransformer(gson);

        get("/hello", (req, res) -> "Hello World");
        post("/ping", (req, res) -> "pong", asJson);
    }

}

@@ -870,16 +870,246 @@
 sJson);%0A
+        post(%22/%22, (req, res) -%3E %7B%0A            JsonObject body = gson.fromJson(req.body(), JsonObject.class);%0A            logger.info(%22Incoming request on '/': %7B%7D%22, body.entrySet());%0A            return %22pong%22;%0A        %7D, asJson);%0A%0A
     %7D%0A%0A%7D

Add minimum json bootstrap for post