External JSON File
-
-
Actually this is deprecated and I recommend to use the file system API:
https://docs.hise.audio/scripting/scripting-api/file/index.html#loadasobject
And yes, the documentation is now up to date again :)
-
@Christoph-Hart Even better :D
-
@Christoph-Hart @d-healey
How about we just include Json file before Export Plugins Only ? -
Include it just like a js file...
-
@Christoph-Hart
I could not do it ,
Can you please give me an example ?
Ex: i have "data.json" in scripts folder{ "name":"Abcd", "email":"abcd@email.com" }
and i want to past it to (var data)
before i did add (var data) and change it to data.js then include in project
var data = { "name":"Abcd", "email":"abcd@email.com" }
-
You're almost there. Add a semicolon at the end to make it valid JS and then it should work.
-
@Christoph-Hart Oh yes , I forget to add ";" :D
but is it only way to do it?And a quick question.
Not related Question: Does HISE have shortcut for comment like (ctrl + / or cmd + /) ? -
Use F4 :)
-
@Christoph-Hart oh wow thank you
i can't even guess, :D