title: Spring boot jackson java.time.Duration
body: <p>I have create a restful web service and i try to send post request the above class </p>
  
  <pre><code>public class A {
      Duration availTime;
  }
  
  public class MyRest {
      @RequestMapping(value = "/test", method = RequestMethod.POST)
      public Response&lt;?&gt; test(@RequestBody A ta) {
          return new ResponseEntity&lt;&gt;(HttpStatus.OK);`
      }
  }
  </code></pre>
  
  <p>raw request body </p>
  
  <pre><code>{
    "availTime": {
      "seconds": 5400,
      "nano": 0,
      "units": [
        "SECONDS",
        "NANOS"
      ]
    }
  }
  </code></pre>
  
  <p>expected json result</p>
  
  <pre><code> {"availTime": "PT1H30M"}
  </code></pre>
  
  <p>and i got the above error : Failed to read HTTP message: </p>
  
  <pre><code>org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unexpected token (START_OBJECT),
  expected one of [VALUE_STRING, VALUE_NUMBER_INT, VALUE_NUMBER_FLOAT] for java.time.Duration value; nested exception is
  com.fasterxml.jackson.databind.exc.MismatchedInputException: Unexpected token (START_OBJECT), expected one of [VALUE_STRING, VALUE_NUMBER_INT, VALUE_NUMBER_FLOAT] for java.time.Duration value
  </code></pre>