Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I want to create the following JSON file:
{
"level1": {
"level2": [{
"level3": {
"newColumn2": "level3value"
},
"newColumn1": "level2value"
}],
"newColumn": "level1value"
}
}
(note the array I use for level2)
I am using tWriteJsonField to achieve this.
Job overview:
I am using a simple sample configuration to simplify some things.
Finally I created three levels in my output JSON string and added a class attribute in order to achieve the array on the second level
But when running this job, some information is lost and I cannot find a solution to prevent this. The final result looks like this:
{
"level1": {
"level2": [{
"newColumn2": "level3value"
}, "level2value"],
"newColumn": "level1value"
}
}
The array is there, but the Level3 header is lost.
Is there any solution for this?