title: How to parse list of object from Json Object
body: <p>I need help to parse this JSON, i have some problems.</p>
  
  <ol>
  <li>The object name is "random"</li>
  <li>I need to create Java object with list of generic objects and parse Json</li>
  <li>How i can parse every object with random object name.</li>
  </ol>
  
  <p>The Json to Parse example 1 :</p>
  
  <pre><code>{
     "object_name_1":{
        "id":0,
        "value_1":"hello",
        "value_2":"test",
  
     },
     "object_name_2":{
        "id":1,
        "value_1":"hello",
        "value_2":"test",
  
     },"object_name_3":{
        "id":2,
        "value_1":"hello",
        "value_2":"test",
  
     }
  } 
  </code></pre>
  
  <p>The Json to Parse example 2 :</p>
  
  <pre><code>{
     "test_object":{
        "id":0,
        "value_1":"hello",
        "value_2":"test",
  
     },
     "object_name_2":{
        "id":1,
        "value_1":"hello",
        "value_2":"test",
  
     },
  "new_object":{
        "id":2,
        "value_1":"hello",
        "value_2":"test",
  
     }
  }
  </code></pre>
  
  <ul>
  <li>NB: This is a JSON Object not Json Array and i have output from API so i can't change Json Output</li>
  </ul>
  
  <p>Thank you.</p>