I have been working all day on this & is my first piece of shared code ๐! It requires a JSON file in the following format:
{
"1": "<faq answer 1>",
"2": "<faq answer 2>",
"error": "<numbered list of questions>"
}
I used my github.io webpage for this! It is free and you can easily setup HTTPS for it!
Here is my blank test code for you to modify as needed!
$(eval const api=$(urlfetch json https://<your_website>/<yourJSONfile.json>); if ("$(1)" in api) { ${api["$(1)"]}; } else { ${api["error"]} })