Support Questions

Find answers, ask questions, and share your expertise

Who agreed with this solution

avatar
Super Guru

Hi,

 

First of all make sure that the provided json is in valid format . What you provided in your example doesnt have double quotes surrounding the key\value as in

{
"Label1": "Value1",
"Label2": "Value2"
}

 

Assuming thejson is valid , you can use the following jolt spec to produce expected output:

 

[
  {
    "operation": "shift",
    "spec": {
      "*": "GeneralLabel[#].&"
    }
  }
]

 

To learn more about jolt transformation please refer to :

https://jolt-demo.appspot.com/#inception

https://intercom.help/godigibee/en/articles/4044359-transformer-getting-to-know-jolt

 

If that helps please accept solution.

Thanks

 

 

View solution in original post

Who agreed with this solution