code: @Route(method = HttpMethod.POST, uri = "/json/car")
      public Result getACar() {
          Car car = new Car("renault", "clio 2", 4, "dirty");
          return ok(car).json();
      }
docs: tag::custom-serialization[]