How to open and read JSON file?
Is there a specific way to open and read a json file other than using cfhttp tag?
Is there a specific way to open and read a json file other than using cfhttp tag?
As I've said above, I tried to use the <cfset kogroups = deserializeJSON(fileread(#KOGroups.json#)) /> but I'm not sure how to specify the path. It's unable to find the file. The actual location of the KOGroups.json is located in a shared folder and not on the IIS server. The path is "https://devbox.mysite.com/search/KOGroups.json but I'm not sure how to specify a relative path instead of a absolute path.
<cfset koGroupsJSON = fileRead("https://devbox.mysite.com/search/KOGroups.json")>
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.