Community Member Profile
Recent Blog Comments By Eric P.
Posted on Mar 16, 2010 at 11:49 AM
> I wonder if returnFormat="json" will set the mimetype in the response? Just checked; it does not. I show: Content-Type text/html; charset=UTF-8 I usually use returnFormat="json" with returntype="Struct", and it appears the only thing you get from doing that is you can... read more »
Posted on Mar 11, 2010 at 4:56 PM
I've struggled with returning JSON from ColdFusion CFCs for a while because I (mysteriously) get lots of white space/new lines that appear before the actual JSON result (check the response in Firebug under the Console or Net tab). Not really a problem in the example above since dataType: "json"... read more »