A slight amendment to my proposal, try the following: <cfset LineInfo = [{"Description": "Item1", "Quantity": 1, "LineTotal": 20} ,
{"Description": "Item2", "Quantity": 2, "LineTotal": 15}]>
<cfscript>
myStruct=
{"InvoiceID": "12345",
"InvoiceLine": #LineInfo#
}
writeOutput(serializeJSON(myStruct));
</cfscript>
... View more