pkgtxt2json is a simple python script that converts a Slackware PACKAGES.TXT repository file to json format. You just have to provide the path to the PACKAGES.TXT file as an argument.
gapan/pkgtxt2json
A python script that converts a Slackware PACKAGES.TXT repository file to JSON format
PythonGPL-3.0