title: Complex Json Object to Java object with Map field with Gson
body: <p>I have a Json structure like so:</p>
  
  <pre><code>{
     "Pojo" : {
         "properties" : {
            "key0" : "value0",
            "key1" : "value1"
         }
     }
  }
  </code></pre>
  
  <p>I want my final result to look something like this:</p>
  
  <pre><code>public class Pojo {
       public Map&lt;String, String&gt; properties;
  }
  </code></pre>
  
  <p>but instead I get something like this:</p>
  
  <pre><code>public class Pojo {
     public Properties properties;
  }
  
  public class Properties {
    public String key0;
    public String key1;
  }
  </code></pre>
  
  <p>Right now all I am doing for parsing the Json is this:</p>
  
  <pre><code>new Gson().fromJson(result, Pojo.class)
  </code></pre>
  
  <p>Thoughts on what I would need to do to get this set up correctly? I do not have the ability to change the Json return object's structure.</p>