title: How to get dynamically changing Key's value in Json using jackson in java
body: <p>below is my json string parsing using jackson using java , in which the storage array values  will be dynamically changing based on the region , US, UK or any region. how to handle these objects</p>
  
  <pre><code>{
  "serviceType": {
      "US - Northern California 1": [
        {
          "serviceName": "Virtual Private Cloud",
          "tenantType": "VP",
          "licenseType": "EDUCATIONAL",
          "description": "Virtual Private Cloud",
          "defaultFlag": "N",
          "tooltip": "",
          "storage": [
            {
              "ACC STORAGE": {
                "storageName": "SSD Accelerated Storage",
                "terms": [
                  [
                    "12 months",
                    "12_MTH",
                    [
                      "Prepaid",
                      "Monthly"
                    ],
                    "N"
                  ]
                ]
              }
            }
          ]
        }
      ],
      "US - New Jersey 1": [
        {
          "serviceName": "Air Dedicated Cloud",
          "tenantType": "DCP",
          "licenseType": "EDUCATIONAL",
          "description": "Air Dedicated Cloud",
          "defaultFlag": "N",
          "tooltip": "",
          "storage": [
            {
              "STD STORAGE": {
                "storageName": "Standard Storage",
                "terms": [
                  [
                    "12 months",
                    "12_MTH",
                    [
                      "Monthly",
                      "Prepaid"
                    ]
                ]
              ]
              }
            }
          ]
        }
          ]
  
      }
  }
  </code></pre>
  
  <p>My question is: <strong>how do I access the content of "storage" since "ACC STORAGE", "STD STORAGE", etc are all dynamic values?</strong></p>
  
  <pre><code>  public class ServiceType 
  {
      @JsonProperty("US - Northern California 1")
      public List&lt;serviceTypes&gt; USNorthernCalifornia1;
      @JsonProperty("US - New Jersey 1")
      public List&lt;serviceTypes&gt; uSNewJersey1;
  
       //getters and setters
  }
  
  public class serviceTypes
  {
     public class serviceTypes 
  {
      @JsonProperty("serviceName")
      public String serviceName;
      @JsonProperty("tenantType")
      public String tenantType;
      @JsonProperty("licenseType")
      public String licenseType;
      @JsonProperty("description")
      public String description;
      @JsonProperty("defaultFlag")
      public String defaultFlag;
      @JsonProperty("tooltip")
      public String tooltip;
      @JsonProperty("storage")
      public List&lt;Storage&gt; storage = new ArrayList&lt;Storage&gt;();
   //getters and setters
  }
  
  public class storage
  {
  
  }
  </code></pre>
  
  <p><strong>the  class storage left blank as i am confused wht to declare as the values will dynamically change</strong></p>
  
  <p>Please help me . thanks in advance</p>