title: How to Post a Json body from a java/jackson Object in Gatling 2
body: <p>I'm building an object like this:</p>
  
  <pre><code>val car = new Car()
  car.setName("BMW")
  </code></pre>
  
  <p>Please notice that the object Car is a jackson Object</p>
  
  <p>The goal is to do a post with the car json as a body</p>
  
  <pre><code>val httpConf = http.baseURL("http://localhost:8080/v1")
      .acceptHeader("*/*")
      .connection("keep-alive")
      .header("Content-Type", "application/json")
  
  val carRequest = scenario("Create a car")
      .exec(
          http("create a car").post("/cars/").body(car).asJSON
  )
  </code></pre>
  
  <p>But this doesn't works. It expect Body object in body()</p>
  
  <p>How can i fix that ? </p>