title: how to parse this JSON file using jackson?
body: <p>I have this JSON file</p>
  
  <pre><code>{
    "personal": {
      "name": "John Doe",
      "age": "28",
      "gender": "male",
    }
  }
  </code></pre>
  
  <p>This is the POJO I want to parse it to</p>
  
  <pre><code>public class customerInfo{
     private String infoType;
     private Map&lt;String, String&gt;;
  }
  </code></pre>
  
  <p>The reason I want to use this POJO because the JSON file could also be</p>
  
  <pre><code>{
    "address": {
      "street": "123 main st",
      "state": "md",
      "zipcode": "21228"
    }
  }
  </code></pre>
  
  <p>This is what I tried but it didn't work</p>
  
  <pre><code>customerInfo customer = mapper.readValue(new File("jsonTestFile.json"), customerInfo.class);
  </code></pre>
  
  <p>Any help please? Thank you!</p>
  
  <p>EDIT: so I want infoType to map to personal or address. And the Map should be , and so on</p>