title: Json string parsing to java object with multiple objects
body: <p>Trying to parse the following json string to java object using gson</p>
  
  <pre><code>{
      "entry": "132456",
      "product": {
          "item": "123456",
          "prompts": [
              {
                  "promptId": "1",
                  "promptNumber": "109",
                  "promptType": 4,
                  "promptTypeDesc": "desc1",
                  "validations": [
                      {
                          "minLen": 10,
                          "maxLen": 10,
                          "required": true
                      } 
                  ] 
              },
              {
                  "promptId": "2",
                  "promptNumber": "110",
                  "promptType": 4,
                  "promptTypeDesc": "desc2",
                  "validations": [
                      {
                          "minLen": 12,
                          "maxLen": 12,
                          "required": true
                      } 
                  ] 
              },
              {
                  "promptId": "3",
                  "promptNumber": "72",
                  "promptType": 5,
                  "promptTypeDesc": "desc4",
                  "validations": [
                      {
                          "required": true 
                      } 
                  ] 
              } 
          ]
      }
  }
  </code></pre>
  
  <p>I have my java classes as</p>
  
  <pre><code> public class Info{
          private String entry;
          private Product product;
         // added setters and getters
  
    /* Product is inner class*/
    public static Product {
        private String item;
        private List&lt;Prompt&gt; prompts;
       // added getters and setters
  
       /*Prompt inner class*/
       public static Prompt{
          private String promptId;
          private String promptNumber;
          private List&lt;Validation&gt; validations;
          // getters and setters
  
  
        /*Validation inner class*/
        public static Validation{
            private int maxLen;
            private int minLen;
            private boolean required;
            // added getters and setters
        } // end of Validation class
      } // end of Prompt class
     } // end of Product
  } // End of Info
  </code></pre>
  
  <p>I am getting Prompt object as null after converting.</p>
  
  <pre><code>       item = gson.fromJson(response, Info.class);
  </code></pre>
  
  <p>Can someone please correct me </p>