This program was written using Ruby v3 and tested on Fedora 34 + macOS Catalina & Big Sur.
One gem is required to run this program:
gem install json
Usage: ruby json2m3u8.rb
The file "live.m3u8" will be created after you select from the available groups.