Yes the issue is the meta tag. Having done a lot of Dojo work and also creating http://CFJsonService.riaforge.org I found that you can't evaluate a json object if there is something there that is not json expected.
Your only bet is to modify the call, where it does the http request within spry, and do something like this. var strTest = http.responseText; strTest = strTest.replace(/(<\/?META[^>]*>)/gi,''); Which removes the meta tag. Andrew Scott Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone:Â +613 Â 8676 4223 Mobile: 0404 998 273 -----Original Message----- From: Jonathon Stierman [mailto:[EMAIL PROTECTED] Sent: Thursday, 5 July 2007 11:29 AM To: CF-Talk Subject: having trouble with CFJSON / Spry I've got a webservice running that converts some various CF objects into JSON - Seems to be working alright, but I'm running into a vexing issue. When I call the service via Spry, I get an error from SpryDebug.js: "Caught exception in JSONDataSet.loadDataIntoDataSet: SyntaxError: missing } in XML expression" What's confusing is that if I call the service myself, copy the contents into a .js file, and then have Spry call straight from that .js file, it works just fine! Here's the JSON my Service returns, if that helps: { "recordcount":3, "columnlist":"categoryid,matchid,name", "data": { "categoryid":[3,3,3], "matchid":[1,2,3], "name":["some dude","random guy","joe schmoe"] } } My service code (condensed) is pretty basic. I pass in a Query object (results) and tell CFJSON to format it as a query: <!--- transform the result into JSON ---> <cfset results = Variables.jsonCFC.encode( data = results, queryFormat = "query" ) /> <cfreturn results /> I am running on a development server, so I get that meta data on every CF request: <META NAME="ColdFusionMXEdition" CONTENT="ColdFusion DevNet Edition - Not for Production Use."> Could that be the culprit? If so, how do you guys develop AJAX apps without running into this issue? Jonathon ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| CF 8 â Scorpio beta now available, easily build great internet experiences â Try it now on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282923 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

