title: Deserialize a javax.json.JsonObject
body: <p>Through a rest service that <code>@Consumes(MediaType.APPLICATION_JSON)</code> i get a JSON object like this </p>
  
  <pre><code>{
      "key": "myKey",
      "value": {
        "port": 1234,
        "username": "JimmyTest5",
        "password": "password123",
        "host": "http://myurl.com",
      }
  }
  </code></pre>
  
  <p>In my java code i need this JSON to be inserted into the class : </p>
  
  <pre><code>public class Input {
  
      @JsonProperty("key")
      private String key;
      @JsonProperty("value")
      private JsonObject value;
  
      protected Input () {
      }
  
      public Input (String key, JsonObject value) {
          this.key = key;
          this.value = value;
      }
  
      public String getKey() {
          return key;
      }
  
  
      public JsonObject getValue() {
          return value;
      }}
  </code></pre>
  
  <p>The JsonObject type is mandatory.
  Sadly I can't find any method to make it work. The error I get is</p>
  
  <blockquote>
    <p>Caused by: java.util.concurrent.CompletionException: javax.ws.rs.ProcessingException: com.fasterxml.jackson.databind.JsonMappingException: Can not find a deserializer for non-concrete Map type [map type; class javax.json.JsonObject, [simple type, class java.lang.String] -> [simple type, class javax.json.JsonValue]]</p>
  </blockquote>