title: Transpose an array to another one with Jolt
body: <p>I have tried hard to transpose the input json string to another one with Jolt as follows. But I couldn't write the correct Jolt Spec to achieve the transformation, can Jolt do something like this? Thanks!</p>
  
  <p><strong>Input:</strong></p>
  
  <pre><code>{
    "result": [
      {
        "name": "AAA",
        "value1": "AAA-111",
        "value2": "AAA-222",
        "value3": "AAA-333"
      },
      {
        "name": "BBB",
        "value1": "BBB-111",
        "value2": "BBB-222",
        "value3": "BBB-333"
      },
      {
        "name": "CCC",
        "value1": "CCC-111",
        "value2": "CCC-222",
        "value3": "CCC-333"
      }
    ]
  }
  </code></pre>
  
  <p><strong>Output:</strong></p>
  
  <pre><code>{
    "result": [
      {
        "value_name":"value1",
        "AAA":"AAA-111",
        "BBB":"BBB-111",
        "CCC":"CCC-111"
      },
      {
        "value_name":"value2",
        "AAA":"AAA-222",
        "BBB":"BBB-222",
        "CCC":"CCC-222"
      },
      {
        "value_name":"value3",
        "AAA":"AAA-333",
        "BBB":"BBB-333",
        "CCC":"CCC-333"
      }
    ]
  }
  </code></pre>