Geonames.scripts is a list of python scripts to handle geonames database dumps and make them usable and readable.
You'll need pandas to use most scripts.
pip install pandascd /scripts/
# geonames_to_json accepts 2 paramaters: input txt file and output json file (created if not existent)
python geonames_to_json NL.txt test.jsonTo prettify a heavy JSON, you can run:
type starting.json | python -mjson.tool > ending.json