Author Topic: Read JSON file in JScript  (Read 1706 times)

adeebulhafiz

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Read JSON file in JScript
« on: May 24, 2022, 12:12:27 am »
Hi Is there any way to read JSON file via JScript?
I am able to read a text file like this:
Code: [Select]
var fso, f1;
fso = new ActiveXObject("Scripting.FileSystemObject");
f1 = fso.OpenTextFile("c:\\EA\\test.txt");
var ScriptName = f1.ReadLine();


However, I would like to take inputs from a JSON file. Is there any way to do it. Thanks!

EA version: 15.2 Unified Edition