The other returnFormat - plain

A friend just sent me a question regarding YUI (Yahoo’s Ajax library) and JSON. Apparently YUI wants a JSON format (for query data) that ColdFusion can’t handle automatically. He assumed this meant he couldn’t speak directly to a CFC. That isn’t the case. Don’t forget that along with returnFormat=json, you can do use both plain and XML. So if you want to spit out the JSON format that Yahoo will like, you would need to create the string yourself, and use returnFormat=plain in the URL.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Comments