JSON to JAVA POJO of dynamic key-value pair
<p>I have to create POJO class of following JSON, Problem is that key p_d has variables with dynamic name like s_t, n_t, n_p and etc. the real JSON is big and i am facing problem with that part only, i shared partial JSON.
    i am using jackson for parsing.  </p>

<pre><code>{
  "flag": true,
  "flag2": false,
  "r_no": [
    {
      "room_type": 250067,
      "no_of_rooms": 1,
      "no_of_children": 1,
      "no_of_adults": 2,
      "description": "Executive Room, 1 King Bed, Non Smoking",
      "children_ages": [
        8
      ]
    },
    {
      "room_type": 250067,
      "no_of_rooms": 1,
      "no_of_children": 0,
      "no_of_adults": 2,
      "description": "Executive Room, 1 King Bed, Non Smoking"
    }
  ],
  "r_code": "abc",
  "r_key": "123",
  "p_d": {
    "s_t": [
      {
        "name": "xyz",
        "cur": "INR"
      },
      {
        "name": "xyz1",
        "cur": "INR"
      }
    ],
    "n_t": [
      {
        "name": "xyz2",
        "cur": "INR"
      }
    ],
    "n_p": [
      {
        "name": "xyz5",
        "cur": "INR"
      }
    ]
  },
  "cur": "INR"
}
</code></pre>