i am attempting to pull data from one website to insert into the database of another website in coldfusion - have gotten the data to the second site - and studied all the documentation i can find on coldfusion struct commands and i just seem to go around in circles -
it is just a simple array that i want to upload into a table - the tables from the two websites are identical -
evidently i need a very simple step by step instruction to understand how to get the data into a value i can upload into the second database - can someone please help
this is the code i used to get the data - and an image of the results - if the image doesn's show the url is http://www.tectrics.com/english/map/getjson.cfm
<cfset urlAddress="http://www.tectrics.com/english/map/localjson.cfm">
<cfhttp url="#urlAddress#" method="GET" resolveurl="Yes" throwOnError="Yes"/>
<cfset meetlist=DeserializeJSON(CFHTTP.FileContent)>
<cfdump var="#meetlist#">
array image
0s andempty strings supposed to bebooleantypes? It looks like most of those values should be fairly simple to whitelist, likedayoropen(if that one is eitheropenorclosed, but then it should probably be a different datatype). Though you might also be better off fixing your database to have the correct types that the API is sending you, then convert that data on yourINSERT.