config_for: add json support for config files.

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.

0001-Added-json-support-for-config_for.patch (6.3 KB)

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.