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
Hire Me!
I'm currently looking for my next role in developer evangelism and advocacy. I have a long history of helping companies work with developers and love to write, create demos, and present at confereneces. You can find my resume to learn more and drop me an email (raymondcamden@gmail.com) to reach out.
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.
Archived Comments
Great tip Ray :)
Hey Ray,
After quite a bit of digging I found a post on Yahoo that tells how to build JSON that YUI will like.
http://tech.groups.yahoo.co...