public static JSONObject convertYamlFileToJson(Object clazz, String yamlFileName) throws URISyntaxException {
        String yamlStringContents = toStringFromYamlFile(clazz, yamlFileName);
        return new JSONObject(new JSONTokener(convertToJson(yamlStringContents)));
    }
Converts a YAML file into a json object
<p>Example Usage:</p>
<pre>{@code
 JSONObject jsonObject = convertYamlFileToJson(this, "filename");}
</pre>

@param clazz the class used for loading resources, normally you want to pass 'this'
@param yamlFileName the name of the yaml file that needs to be converted
@return JSONObject pertaining to that yaml file.
@throws URISyntaxException if an invalid URI is passed.
test-harness/src/main/java/io/jenkins/plugins/casc/misc/Util.java