title: Mapping a JSON key value pair to HashMap
body: <p>I am trying to map a key value pair in json, <code>recipient_status</code> below, to a <code>Map&lt;String, String&gt;</code> object. All fields get parsed correctly, except this one. Is there another way I should parse a key value pair?</p>
  
  <p>I am sending the following JSON string:</p>
  
  <pre><code>{
    "id": "layer:///messages/940de862-3c96-11e4-baad-164230d1df67",
    "parts": [
      {
        "id": "layer:///messages/940de862-3c96-11e4-baad-164230d1df67/parts/0",
        "mime_type": "text/plain",
        "body": "This is the message."
      }
    ],
    "sent_at": "2014-09-09T04:44:47+00:00",
    "recipient_status": {
      "layer:///identities/777": "sent",
      "layer:///identities/999": "read",
      "layer:///identities/111": "delivered",
      "layer:///identities/1234": "read"
    },
    "position": 120709792
  }
  </code></pre>
  
  <p>To my Java Sprint Boot backend</p>
  
  <pre><code>@RequestMapping(method = RequestMethod.POST, value = "/")
  public String conversationCreated(@RequestBody Message message) {
  }
  </code></pre>
  
  <p>And try to parse it into the following object:</p>
  
  <pre><code>@Data
  public class Message {
      private String id;
  
      private List&lt;Part&gt; parts;
  
      private LocalDateTime sentAt;
  
      private Map&lt;String, String&gt; recipientStatus;
  
      private Long position;
  }
  </code></pre>