title: How to declare genericy key value pair array in java
body: <p>Hello friends i am new to java collection, i need to create an array as follows,</p>
  
  <p>Array(
    "key1":"value1",
    "key2":[
        "key21":"value21",
        "key22":"value22"
       ],
    "key3":"value3"
  )</p>
  
  <p>value's datatype's are specified dynamically. If example or tutorials available please share it. Thanks in advance.</p>