title: Transform JSON and create new one
body: <p>I'm working with JSON in Java, and I want to trasnform a JSON I have as entry :</p>
  <pre class="lang-json prettyprint-override"><code>{
     &quot;index&quot;:{
        &quot;mutlipleIndices&quot;:[
           {
              &quot;index&quot;:&quot;languages&quot;,
              &quot;values&quot;:[
                 &quot;English&quot;,
                 &quot;German&quot;
              ]
           },
           {
              &quot;index&quot;:&quot;editors&quot;,
              &quot;values&quot;:[
                 &quot;AC. Renus&quot;,
                 &quot;Lodiga&quot;
              ]
           }
        ],
        &quot;simpleIndices&quot;:[
           {
              &quot;index&quot;:&quot;bookName&quot;,
              &quot;values&quot;:&quot;A song Of Ice and fire&quot;
           },
           {
              &quot;index&quot;:&quot;nbPages&quot;,
              &quot;valeurs&quot;:1600
           }
        ]
     }
  }
  </code></pre>
  <p>int this :</p>
  <pre class="lang-json prettyprint-override"><code>    {
          &quot;data&quot;: { ... Put here the entry JSON ... },
          &quot;flatData&quot;: [
              {
                  &quot;key&quot;: &quot;languages&quot;,
                  &quot;type&quot;: &quot;string&quot;,
                  &quot;key_type&quot;: &quot;languages.string&quot;,
                  &quot;value_string&quot;: [&quot;English&quot;, &quot;German&quot;] 
              },
              {
                  &quot;key&quot;: &quot;editors&quot;,
                  &quot;type&quot;: &quot;string&quot;,
                  &quot;key_type&quot;: &quot;editors.string&quot;,
                  &quot;value_string&quot;: [&quot;AC. Renus&quot;, &quot;Lodiga&quot;]
              },
              {
                  &quot;key&quot;: &quot;bookName&quot;,
                  &quot;type&quot;: &quot;string&quot;,
                  &quot;key_type&quot;: &quot;bookName.string&quot;,
                  &quot;value_string&quot;: &quot;A song Of Ice and fire&quot;
              },
              {
                  &quot;key&quot;: &quot;nbPages&quot;,
                  &quot;type&quot;: &quot;float&quot;,
                  &quot;key_type&quot;: &quot;nbPages.float&quot;,
                  &quot;value_float&quot;: 1600
              }
          ]
      }
  </code></pre>
  <p>My entry JSON is a JsonNode (Jackson library), how can I iterate on that object and create a new one ?
  Basically what I thought I'd do is iternate on the entry json, find an entry and transform it
  Thanks in advance</p>