"fieldX" : [
{
"variavelA" : "resultado",
"variavelB" : "3",
"variavelC" : "Concluído",
"date" : {
"__type" : "Date",
"iso" : "2021-08-26T03:00:00.000Z"
}
}{
"variavelA" : "resutlado",
"variavelB" : "3",
"variavelC" : "Concluído",
"date" : {
"__type" : "Date",
"iso" : "2021-08-27T03:00:00.000Z"
}
}
]
In my dataset I have a field x with a array with json structure inside it, which can range from 0 to 12, I would like to treat this data by including in new columns at the end of my dataset, for example "variableA" would be converted to "variableA1" until the "variableA12" with its respective value and so it would repeat for all variables within fieldX having something like this:
| fieldX | variavelA1 | variavelB1 | variavelC | date1 | variavelA2 | variavelB2 | variavelC2 | date2 |
|---|---|---|---|---|---|---|---|---|
| value | value | value | value | 2021-08-26 | value | value | value | 2021-08-27 |
| value | value | value | value | 2021-08-26 | value | value | value | 2021-08-27 |
| value | value | value | value | 2021-08-26 | value | value | value | 2021-08-27 |