Login

    Register

This is to notify all, that we will be decommissioning http://riaforge.org/ ("Site") soon. This decision has been taken due to business reasons. If you are interested in reviewing or downloading any project or files available at Site, please do so, by April 16, 2019, 12 noon PST , as per license terms associated therewith. Past that, you will not be able to access the projects or files.Should you have any concerns/suggestions/query, feel free to Contact Us.
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: 259,517
Downloads: 6,021
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.


This is to notify all, that we will be decommissioning http://riaforge.org/ ("Site") soon. This decision has been taken due to business reasons. If you are interested in reviewing or downloading any project or files available at Site, please do so, by April 16, 2019, 12 noon PST , as per license terms associated therewith. Past that, you will not be able to access the projects or files.Should you have any concerns/suggestions/query, feel free to Contact Us.