Added support for JSON config files.