JSON, called Javascript Object Notation is being used for integrating computer systems based on XML and WDDX. If using JSON with CFM, you don't need to do much because CFC can output json data.
2<cfhttp url='http://api.search.yahoo.com/WebSearchService/V1/webSearch?appid=YahooDemo&query="ColdFusion Ajax"&output=json'>
3<!--- The result is a JSON-formatted string that represents a structure.
4Convert it to a ColdFusion structure. --->
5<cfset myJSON=DeserializeJSON(#cfhttp.FileContent#)>
6<!--- Display the results. --->
7<cfoutput>
8
9Results of search for "ColdFusion 8"
10
11There were #myJSON.ResultSet.totalResultsAvailable# Entries.
12
13Here are the first #myJSON.ResultSet.totalResultsReturned#.
14
15<cfloop index="i" from="1" to="#myJSON.ResultSet.totalResultsReturned#">
16 <a href="#myJSON.ResultSet.Result[i].URL#">
17 #myJSON.ResultSet.Result[i].Title#
18 </a>
19 #myJSON.ResultSet.Result[i].Summary#
20</cfloop>
21</cfoutput>
Read more here

Android
Top of Page
#1 by keith brown on 1/26/11 - 7:04 AM
"You have attempted to dereference a scalar variable of type class coldfusion.runtime.Array as a structure with members. "
#2 by ppshein on 1/28/11 - 1:21 AM
It's because of Yahoo API is getting errors. Not because of our CFM. You can check it out by pasting following URL into address bar and test it.
http://api.search.yahoo.com/WebSearchService/V1/we... Ajax&output=json
Hope Yahoo will fix it as soon as possible.