Now supporting json config, json output