title: vertx get body of a simple post reques
body: <p>Their <a href="http://vertx.io/docs/vertx-web/java/#_request_body_handling" rel="nofollow noreferrer">doc on vertx website isn't quite clear on how to receive the body of a request</a>.</p>
  
  <pre><code>var vertx = Vertx.vertx();
  var server = vertx.createHttpServer();
  var Router = require("vertx-web-js/router");
  var BodyHandler = require("vertx-web-js/body_handler");
  
  
  var router = Router.router(vertx);
  
  
  router.route().handler(BodyHandler.create().handle);
  
  router.route('POST', "/a").handler(function (routingContext) {
    var response = routingContext.response();
    response.setChunked(true);
    response.write("a json received");
    var str = routingContext.getBodyAsJson()
    console.log(str);
    // Now end the response
    routingContext.response().end();
  });
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code> vertx-js/util/console.js:9 ReferenceError: "inspect" is not defined
  </code></pre>
  
  <p>How am I supposed to know what to call if they don't even put it in their doc..</p>