#!/usr/bin/env python3 import sys import yaml import json with open('karabiner.yaml') as in_f: with open('karabiner.json', 'w') as out_f: json.dump(yaml.load(in_f), out_f, indent=4)