This code log the json in the console, however, when I try to set the Variable1 it gives me the following error in the console:
Uncaught (in promise) ReferenceError: runtime is not defined
Note that the function is launched as soon someone click a button in Construct3. I tried several ways but I'm not able to retrieve it.
The idea is to retrieve the json file using the javascript, then set a global variable and push it to the json plugin.
Thank you