coldfusion loop through json

I wrote this generic function today to convert any query to a valid JSON string with lowercase element names. ColdFusion 8 introduced the ability to serialize data structures, arrays, and queries to JSON notation, making building AJAX-enabled applications even easier. The cfloop collection attribute loops over every object within a COM/DCOM collection object, or every element in a structure: A COM/DCOM collection object is a set of similar items referenced as a group. Any Java-related change directly impacts ColdFusion. I'm sure you could build a string parser, but deserializeJSON () is useful in two ways: 1. So wat I did was like looping through the query object and arrange the data in json like structure and ultimately using the javascript to display the table rows. ColdFusion is a Java-based application server. . The process went as follows: -Use AJAX to call a CFC that would query the questions. For example, the group of open documents in an application is a collection. When reading large text files, you can reuse the value of the index variable, which contains the current line of the file. One workaround is to use a CFC with cfproperty to specify types. A loop over a query executes for each record in a query record set . I've worked with JSON data in the past - mainly 'fudging' my way to a solution, and not really understanding why or how things work. ColdFusion no longer comes with samples (since CF7), as it was deemed unsafe/insecure.