SettingsLoader should support YAML, since YAML is more convenient for manual editing. JSON files should be detected based on file extension and should use the stricter and faster JSON parser.
This is primarily intended for 3rd party installations and development setups, as an alternative to LocalSettings.php. YAML files should however not be used in WMF production. JSON files should instead be generated from YAML (or PHP code) during the deployment process.