Documentation on making API calls, parsing, and formatting.
Will someone provide me information/links to making API calls, parsing, and/or formatting the JSON result in ColdFusion. If there are video tutorials, that'll be awesome.
Will someone provide me information/links to making API calls, parsing, and/or formatting the JSON result in ColdFusion. If there are video tutorials, that'll be awesome.
@2Charlie
In the example from deserializeJSON , change each of the 3 occurrences of ListFind to listFindNoCase. I have reported this error to Adobe.
It's not working. This is what is working..got it from StackOverflow. I assumed the deserializeJSON automatically turned into query but it was not. Looks like it's a struct.
<cfif structKeyExists(cfData, 'weather') AND isArray(cfData.weather)>
<cfoutput>
Name: #cfData.name#
<cfloop index="i" from="1" to="#arrayLen(cfData.weather)#">
<h4>Weather: #cfData.weather.main#</h4>
<h4>Description: #cfData.weather.description#</h4>
</cfloop>
</cfoutput>
</cfif>
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.