code: @Override
      public <T> T body(Class<T> classOfT, Type genericType) {
          String rawContentType = request().contentType();
  
          // If the Content-type: xxx header is not set we return null.
          // we cannot parse that request.
          if (rawContentType == null) {
              return null;
          }
  
          // If Content-type is application/json; charset=utf-8 we split away the charset
          // application/json
          String contentTypeOnly = HttpUtils.getContentTypeFromContentTypeAndCharacterSetting(
                  rawContentType);
  
          BodyParser parser = services.getContentEngines().getBodyParserEngineForContentType(contentTypeOnly);
  
          if (parser == null) {
              return null;
          }
  
          return parser.invoke(this, classOfT, genericType);
      }
docs: This will give you the request body nicely parsed. You can register your
  own parsers depending on the request type.
  <p>
  
  @param classOfT The class of the result.
  @return The parsed request or null if something went wrong.