FCLT#84701 prs_bedrijfadres_template toevoeging
svn path=/Website/trunk/; revision=70435
This commit is contained in:
@@ -794,6 +794,21 @@ var shared = {
|
||||
__DoLog("Open AI ERROR: " + e.description + " (" + duration + "ms)", "#FF0000");
|
||||
}
|
||||
return result;
|
||||
},
|
||||
readJSONfile: function (path)
|
||||
{
|
||||
try
|
||||
{
|
||||
var ff = fso.OpenTextFile(path, 1); // ForReading
|
||||
var jsondata = ff.ReadAll();
|
||||
ff.Close();
|
||||
return JSON.parse(jsondata);
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
__DoLog(jsondata);
|
||||
_AiAi("readJSONfile parse error for file {0}: {1}".format(path, e.message));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user