class OssIndexParser {

    private static final Logger LOGGER = Logger.getLogger(OssIndexParser.class);

    /**
     * Parses the JSON response from Sonatype OSS Index
     *
     * @param responseString the response as a String to parse
     * @return an ComponentReport object
     */
    public List<ComponentReport> parse(final String responseString) {<FILL_FUNCTION_BODY>}

    private ComponentReport parse(final JSONObject object) {
        final ComponentReport componentReport = new ComponentReport();
        componentReport.setCoordinates(object.optString("coordinates", null));
        componentReport.setDescription(object.optString("description", null));
        componentReport.setReference(object.optString("references", null));
        final JSONArray vulnerabilities = object.optJSONArray("vulnerabilities");
        for (int i = 0; i < vulnerabilities.length(); i++) {
            final JSONObject vulnObject = vulnerabilities.getJSONObject(i);
            final ComponentReportVulnerability vulnerability = new ComponentReportVulnerability();
            vulnerability.setId(vulnObject.optString("id", null));
            vulnerability.setTitle(vulnObject.optString("title", null));
            vulnerability.setDescription(vulnObject.optString("description", null));
            vulnerability.setCvssScore(vulnObject.optNumber("cvssScore", null));
            vulnerability.setCvssVector(vulnObject.optString("cvssVector", null));
            vulnerability.setCwe(vulnObject.optString("cwe", null));
            vulnerability.setCve(vulnObject.optString("cve", null));
            vulnerability.setReference(vulnObject.optString("reference", null));
            final JSONArray externalRefsJSONArray = vulnObject.optJSONArray("externalReferences");
            final List<String> externalReferences = new ArrayList<String>();
            for (int j = 0; j < externalRefsJSONArray.length(); j++) {
                externalReferences.add(externalRefsJSONArray.getString(j));
            }
            vulnerability.setExternalReferences(externalReferences);
            componentReport.addVulnerability(vulnerability);
        }
        return componentReport;
    }
}

        LOGGER.debug("Parsing JSON response");
        JSONArray arr = new JSONArray(responseString);
        final List<ComponentReport> componentReports = new ArrayList<>();
        for (int i = 0; i < arr.length(); i++) {
            final JSONObject object = arr.getJSONObject(i);
            final ComponentReport componentReport = parse(object);
            componentReports.add(componentReport);
        }
        return componentReports;
    
<no_super_class>