brihol44
asked on
Reading cfhttp json call and outputing to coldfusion friendly source.
Hello,
I'm getting the feed info but I'm trying to figure out how to read the feed and convert it into Coldfusion friendly use. Basically I'm wanting to output the city and state into a 2d array.
Thx!
I'm getting the feed info but I'm trying to figure out how to read the feed and convert it into Coldfusion friendly use. Basically I'm wanting to output the city and state into a 2d array.
Thx!
<cffunction name="ipLocation"
access="remote"
returntype="struct"
displayname="ipLocation"
output="no">
<cfset var local = StructNew()>
<cfset local.url = "http://www.geoplugin.net/extras/nearby.gp?limit=10&radius=50&format=json">
<cfhttp result="local.ipRequest"
url="#local.url#"
method="get"
timeout="5"
throwOnError="yes"/>
</cffunction>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER