It’s more easy to use json file with other languages like javascript for example. I join the patch I’ve done for make it work.
Please submit a pull request. We usually don’t use json as configuration file but I don’t see why not accept your patch.
There’s an interesting idea, but since yaml is fairly standard I would suggest you’d to better to package this up as a Gem.