parse_hosts_json_url
The parse_hosts_json_url function takes one argument:
src: a http/https URL that contains the path to the JSON file.
The function returns a table that contains the parsed hosts.
Usage Example
main.lua:
local hosts = komandan.parse_hosts_json_url("https://example.com/hosts.json")
This will return the table hosts that contains the parsed hosts.