We already convert YAML to JSON, so instead just detect the file extension and either convert (if YAML) or use as is (if JSON). That way people can use either.