title: (Java) Flatten JSONArray of JSONObject to [[]] with Java8
body: <p>Im using net.sf.json.JSONArray and net.sf.json.JSONObject.
  JSONArray contains multiple JSONObject.</p>
  
  <p>Basically this:</p>
  
  <pre><code>[
      {
          "obj1": [
              {
                  "ID": 12
                  "NAME":"Whatever",
                  "XY":[1,2]
              },
              {
                  "ID": 34
                  "NAME":"Again",
                  "XY":[23,43]
              },
              etc
          ]
      },
      { "obj2": repeat}
  ]
  </code></pre>
  
  <p>I would like to flatten that with Java 8, i.e. result:</p>
  
  <pre><code>[
      {
          "obj1": [
                      [12,'Whatever',1,2],
                      [34,'Again',23,43],
                      etc...
          ]
      },
      { "obj2": repeat}
  ]
  </code></pre>