@acimail01 Ok, I just got an idea.
Place your json somewhere in the config
folder and place the following function in your config.js
.
function loadJSON(filePath) {
if (typeof module !== "undefined") {
return require(filePath);
} else {
try {
return JSON.parse($.ajax({
type: "GET",
url: filePath,
async: false
}).responseText);
} catch (e) {
console.error(e);
return {};
}
}
}
And call it like:
modules: [
loadJSON("config/clock.json")
]
This function will synchronisly load the given JSON, serializes it and returns it. This code is completly untestet, but it should work anyway:)
Edit: I just updated my answer to also work with node.js