Are you doing SerializeJSON() in your CFC method, AND have returntype="JSON" on the function definition? If so, it is double serializing the data. Remove the SerializeJSON() call and allow the function to automatically do the serialization.
HTH, -Carl V. On 3/14/2014 12:26 PM, Rixon Reed wrote: > I have a CFC that I'm trying to return JSON data in a web service.=20 > If I do a dump before I return the code to the calling program, the JSON is= > fine. However it returns this to the calling program:"[\"\\n\\t\\n\\t\\t\\= > n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\= > t\\t\\n\\t\\t\\n\\t\\t\\n\\t<\\\/portfolio>\\n\\t\\n\\t\\t\\n\\t\\t\\n\\t\\= > t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t<\\\/portfolio= > \\n\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t<\\\/portfolio>\\n\\t\\n\\= > t\\t\\n\\t\\t\\n\\t<\\\/portfolio>\\n\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\= > t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t<\\\/portfolio>\\n\\t\\= > n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\= > t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\= > t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\= > n\\t<\\\/portfolio>\\n\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\= > t<\\\/portfolio>\\n\\t\\n\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t<\\\/category>\\n\\t= > \\t<\\\/category>\\n\\t<\\\/category>\\n\\t\\n\\t\\t\\n\\t\\t<\\\/category>= > \\n\\t\\t\\n\\t\\t\\t\\n\\t\\t<\\\/portfolio>\\n\\t\\t\\n\\t\\t<\\\/categor= > y>\\n\\t\\t\\n\\t\\t<\\\/category>\\n\\t\\t\\n\\t\\t\\t\\n\\t\\t<\\\/portfo= > lio>\\n\\t\\t\\n\\t\\t<\\\/portfolio>\\n\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\t\\= > n\\t\\t\\t\\t\\n\\t\\t\\t<\\\/portfolio>\\n\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\= > t\\t\\t\\n\\t\\t\\t<\\\/portfolio>\\n\\t\\t<\\\/category>\\n\\t\\t\\n\\t\\t= > <\\\/portfolio>\\n\\t<\\\/category>\\n\\t\\n\\t<\\\/portfolio>\\n\\t\\n\\t<= > \\\/portfolio>\\n\\t\\n\\t<\\\/portfolio>\\n<\\\/root>\",\"\\n\\t\\n\\t<\\\= > /category>\\n\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\= > t\\t\\n\\t\\t\\n\\t\\t\\n\\t<\\\/portfolio>\\n\\t\\n\\t\\t\\n\\t\\t\\n\\t<\= > \\/portfolio>\\n\\t\\n\\t<\\\/category>\\n\\t\\n\\t<\\\/category>\\n<\\\/ro= > ot>\"]" > > What am I doing wrong? Thanks in advance. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:357936 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

