Why not use cfjson.cfc?
I tried cfjson.cfc and it is a very good cfc for changing ColdFusion structures to JSON data. In a query it puts all of the values for a column into an array. What I was using is toXML.cfc, which keeps each record's columns together. That is how I write my applications and that is what I am most comfortable using.
toJSON puts each record into an array and then sets name value pairs as "column name" : "value". This creates a larger file than cfjson.cfc. It is still much smaller than XML.
