title: How to send a Map in JSON
body: <p>I have an object that I need to upload in JSON</p>
  
  <pre><code>public class Contribution&lt;T extends MovieRequest&gt; {
      private Set&lt;T&gt; elementsToAdd;
      private Map&lt;Long, T&gt; elementsToUpdate;
      private Set&lt;Long&gt; idsToDelete;
  }
  </code></pre>
  
  <p>I want to send this object in JSON using swagger</p>
  
  <pre><code>{
    "elementsToAdd": [
      {
        "country": "USA",
        "title": "string"
      }
    ],
    "elementsToUpdate": {},
    "numbersToDelete": [
      0
    ]
  }
  </code></pre>
  
  <p>I do not know how to put an object in <code>"elementsToUpdate": {},</code>. As a key I want to put Long, and int he value put object.</p>
  
  <p>key (Long), value (object)</p>
  
  <p>I tried this way</p>
  
  <pre><code>    "elementsToUpdate": {
     {
        1 : {
        "country": "USA",
        "title": "string"
        }
     }
    }
  </code></pre>
  
  <p>but throws the error</p>
  
  <pre><code>JSON parse error: Unexpected character ('{' (code 123)): was expecting double-quote to start field name
  </code></pre>