title: Map as parameter in RestAPI Post request
body: <p>I have created an API with a <code>Map&lt;String, Integer&gt;</code> parameter, like this:</p>
  <pre><code>@RequestMapping(value = &quot;upload&quot;, method = RequestMethod.POST)
  public ResponseEntity&lt;String&gt; handleContactsFileUpload(@RequestParam(&quot;file&quot;) MultipartFile file,
                                                         @RequestParam(&quot;name&quot;) String name,
                                                         @RequestParam(&quot;campaignAppItemId&quot;) Long campaignAppItemId,
                                                         @RequestParam(&quot;fileColumnHeaders&quot;) Map&lt;String,Integer&gt; fileColumnHeaders) throws Exception {
      if (file == null)
          return new ResponseEntity&lt;&gt;(&quot;No file uploaded&quot;, HttpStatus.BAD_REQUEST);
      contactService.handleContactsFile(file, name, campaignAppItemId,fileColumnHeaders);
      return new ResponseEntity&lt;&gt;(&quot;File uploaded successfully&quot;, HttpStatus.OK);
  }
  </code></pre>
  <p>I am trying to call this via Postman:
  <img src="https://i.stack.imgur.com/wzQPC.png" alt="" /></p>
  <p>I passed the <code>fileColumnHeaders</code> inside Body-&gt;Form Data as in the screenshot.</p>
  <p>Then I got a message like this in Postman:</p>
  <blockquote>
  <p>Failed to convert value of type 'java.lang.String' to required type 'java.util.Map'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String' to required type 'java.util.Map': no matching editors or conversion strategy found.</p>
  </blockquote>
  <p>Anybody know why this message came ?
  How can we pass a map as a parameter in Rest API request?
  How can we pass a map through Postman?</p>