This repo contains a Python script that converts a CSV of geospatial metadata into a folder of JSON files; one JSON file per line of CSV
To use this script, you will need a CSV file of the metadata you want to convert. Check out the CSV in this repo to see an example of the formatting. Open the Python script and read the code comments to see what to replace in order to make the script work for you.