aaah yes that is the problem. When you have it like that, then CFML wants to do some dynamic replacement for you on that. If was in a variable you wouldn't have the same problem.

<cfsavecontent variable="a">{"origin":1,"orderId":451,"orderDate":"Jul 20, 2011","invoiceDate":"Jul 27, 2011","invoiceNum":"110720094456ZBFM","poNumber":"M720113","shipTo":{"firstName":"BOB","lastName":"SMITH","companyName":"","address1":"650 GUNBY ROAD #232","address2":"","city":"SOMECITY","state":"GA","postalCode":"11111"}} </cfsavecontent>

<cfset stOrderData = deserializeJson( a )>

Jeff Lucido wrote:
Surely. The call to the deserializeJson() function is inside a cfscript block:

<cfscript>
stOrderData = deserializeJson('{"origin":1,"orderId":451,"orderDate":"Jul 20, 2011","invoiceDate":"Jul 27, 2011","invoiceNum":"110720094456ZBFM","poNumber":"M720113","shipTo":{"firstName":"BOB","lastName":"SMITH","companyName":"","address1":"650 GUNBY ROAD #232","address2":"","city":"SOMECITY","state":"GA","postalCode":"11111"}}');
</cfscript>

Thanks for the quick reply Alan. Hope this helps.

-JSLucido

--
official tag/function reference: http://openbd.org/manual/
mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to