title: How to pass object in the header with post man post request?
body: <p>I'm using postman and trying to pass an object in the header but getting an error for the converting from string to object... how would I do it right?</p>
  
  <p>I'm attaching pictures from postman:</p>
  
  <p><a href="https://imgur.com/a/5wAxIYf" rel="nofollow noreferrer">https://imgur.com/a/5wAxIYf</a></p>
  
  <p>this is the code on the server:</p>
  
  <pre><code>@RequestMapping(
        path= arrayOf(
                "/wristbands/upload",
                "/wristbands/upload/"),
        method = arrayOf(RequestMethod.POST),
        consumes = arrayOf(MediaType.APPLICATION_JSON_UTF8_VALUE))
    open fun wristbandProcessNewAlgorithem(@RequestHeader(name = "X-V", required = true)  wristbandRecords: WristbandRecordNewInputDTO): ResponseEntity&lt;*&gt;{
  
     var res=wristbandProcessingService.processWristbandNewAlgorithem(wristbandRecords)
    return ResponseEntity(res,HttpStatus.OK)
  
      }
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Thank you</p>