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.
(This post is more than 2 years old.)
The other returnFormat - plain
Support this Content!
If you like this content, please consider supporting me. You can become a Patron, visit my Amazon wishlist, or buy me a coffee! Any support helps!
Want to get a copy of every new post? Use the form below to sign up for my newsletter.