Move to use JSON for config.