DDS_Inc__Suppor
14 years agoOccasional Contributor
[Resolved]Adding "selective" commas to datasinks
I'm trying to use a datasource loop + datasink to create a json request. The request contains several repeating sections that require a comma in between them except for the last one. Is there a logical way to use a datasink to create?
Example of the final output needed:
{
{
"itemNum":20,
"rowNum":10,
"endDate":"12/31/2011"
},
{
"itemNum":30,
"rowNum":20,
"endDate":"12/31/2011"
},
{
"itemNum":40,
"rowNum":30,
"endDate":"12/31/2011"
}
}
Example of the final output needed:
{
{
"itemNum":20,
"rowNum":10,
"endDate":"12/31/2011"
},
{
"itemNum":30,
"rowNum":20,
"endDate":"12/31/2011"
},
{
"itemNum":40,
"rowNum":30,
"endDate":"12/31/2011"
}
}