:note

ExtendScriptでjsonの読み込みをincludeで行う

json < javascript

before

//@include "/path/to/json2.js"
var json;
var json_file = File("/path/to/test.json");
if (json_file.open("r")) {
  json = JSON.parse(json_file.read())
  json_file.close();
}
json.toSource();

after

var json = 
//@include "/path/to/test.json"
json.toSource();
 
comments powered by Disqus
back to top