title: How to transform list with in a list using jolt library
body: <p>I am trying to transform a json into another using Jolt library and not getting the desired output.</p>
  
  <p>Here is my input file.</p>
  
  <pre>
  
      {
        "maxResults": 150,
        "total": 89,
        "issues": [
          {
            "key": "1",
            "fields": {
              "fixVersions": [
                {
                  "self": "FIX1-01",
                  "id": "11"
                },
                {
                  "self": "FIX1-02",
                  "id": "12"
                }
              ]
            }
          },
          {
            "key": "2",
            "fields": {
              "fixVersions": [
                {
                  "self": "FIX2-01",
                  "id": "21"
                }
              ]
            }
          },
          {
            "key": "3",
            "fields": {
              "fixVersions": []
            }
          }
        ]
      }
      </pre>
  
  <pre><code>And this is the spec file I am using for transformation.
  &lt;pre&gt;
  [
    {
      "operation": "shift",
      "spec": {
        "issues": {
          "*": {
            "key": "[&amp;1].id",
            "fields": {
              "fixVersions": {
                "*": {
                  "self": "[&amp;1].fixVersion.name"
                }
              }
            }
          }
        }
      }
    }
  ]
  </code></pre>
  
  <p>
  And I am getting this output</p>
  
  <pre>
  
      [ {
        "id" : "1",
        "fixVersion" : {
          "name" : [ "FIX1-01", "FIX2-01" ]
        }
      }, {
        "fixVersion" : {
          "name" : "FIX1-02"
        },
        "id" : "2"
      }, {
        "id" : "3"
      } ]
  
  </pre>
  
  <p>Its not right. What it is doing is it is getting first self field value of each issue and populating it as a array in first fixVersions of the output and getting second self field value and populating it in the second fixVersions. What I want to do is keep the structure as it is in input just change self field name like this.</p>
  
  <pre>
  
      [ {
        "id" : "1",
        "fixVersion" : [
         { 
          "name" : "FIX1-01" 
         },
         { 
          "name" : "FIX1-02" 
         }
        ]
      }, {
        "fixVersion" : [
         { 
          "name" : "FIX2-01" 
         }
        ],
        "id" : "2"
      }, {
        "id" : "3"
      } ]
  
  </pre>
  
  <p>What am I doing wrong?</p>