Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all, I'm new with Talend Open Studio. I have problem to create nested array using tJSONDoc component. I did the json but not in what I want. Here is what I got:
{
"Program":"Smart A",
"Details":{
"smart1":[
{
"people":"20",
"class":"A",
"archive":null,
"type":"prog_asuh",
attributes":{
"type":"Attribute_Field"
}
}
]
}
}
This is what I want :
{
"Program":"Smart A",
"Details":{
"smart1":[
{
"attributes":{
"type":"Attribute_Field"
},
"people":"20",
"class":"A",
"archive":null,
"type":"prog_asuh"
}
]
}
}
The attributes moves down because of the multi level object. I try another setting in tJSONDOcOutput but still the outcome is not like I want. How can I get this format? Can someone help me?