Login

    Register

Managed Hosting

PROJECT CATEGORIES

 

toJSON
Project Home Blog Known Issues Contact Project

Author: Doug Laakso (All RIAForge projects by this author)
Last Updated: December 23, 2008 10:09 AM
Version: 0.3
Views: 108,579
Downloads: 4,425
License: Apache License, Version 2

Description:

Converts Arrays, Lists, Queries and Structures to JSON.

Stolen from Raymond Camden. This is a very similar to Ray's toXML.cfc.
http://ray.camdenfamily.com/projects/toxml/

If you are going to steal, steal from the best.

Example

If q is a query object, this will return an JSON string wrapped in a {fruits:[{name:value}]} tag with each row being an element of an array:

<cfset jsonQuery = toJSON.queryToJSON(q, "fruits") />

Issue Tracker:

There are no issues for this project.

To enter issues for this (or any other) project, you must be logged in.