'JOLT Transformation - Nested Json Object

I have a nested JSON object like this:

{
  "0": {
    "testone": 72,
    "testtwo": 1
  },
  "1": {
    "testone": 72,
    "testtwo": 1
  },
  "2": {
    "testone": 72,
    "testtwo": 1
  }
}

which I would like to transform to:

[
   {
      "one":72,
      "two":1
   },
   {
      "one":72,
      "two":1
   },
   {
      "one":72,
      "two":1
   }
]

How do I achieve this using JOLT? Appreciate your inputs.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source