If you KNOW it will always be an array of simple values, you could write it
pretty quickly.

Assuming data is an array of numbers..

<cfset l = arrayToList(Data)>
<cfset r = "[" + l + "]">

r would be your JSON array.



On Fri, Feb 15, 2013 at 6:34 PM, UXB <[email protected]> wrote:

>
> I have a project on a CF 5 server (yes I know) where I need to return a
> JSON
> response of an array and was wondering if anyone had a Library or tag that
> will do the serialization or if I have to roll my own.  I checked the
> CFLib.org for one but the ones there are all for CF MX and up.
>
>
> Dennis Powers
> UXB Internet - A website Design and Hosting Company
> P.O. Box 6028, Wolcott, CT 06716 - T:203-879-2844
> W: http://www.uxbinternet.com
> W: http://www.ctbusinesslist.com
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354545
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to