Flatten any variable type in ColdFusion
I created a function that flattens different types of complex (nested) variables, like structures, arrays and queries. The function is based on the flattenStruct (https://cflib.org/udf/flattenStruct) UDF by Tom de Manincor. Below a simple example: https://cffiddle.org/app/file?filepath=080b6a18-4dd3-4358-b504-05397e085fc6/e6fbab74-7eb8-4b23-aa66-907ce1c7df78/ab358cc3-f8d8-4463-b124-790c509aef5c.cfm