Need JOLT spect to transform give JSON to expected Output json

Check this spec

[
  {
    "operation": "shift",
    "spec": {
      "*": {
        "correlationId": "[&1].payload.correlationId",
        "payloadFormat": "[&1].payload.payloadFormat",
        "payload": {
          "location": "[&2].payload.location",
          "name": "[&2].payload.name",
          "pop": "[&2].payload.pop",
          "County": {
            "*_*": {
              "$(0,1)": "[&4].payload.State",
              "$(0,2)": "[&4].payload.City"
            }
          }
        }
      }
    }
  }
]

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top