JSON data parsing issue in Andorid

I’m trying to get some data form the Guardian API. I keep getting a parse error with my code.

            "webTitle":"Debate continues over Labour’s code on antisemitism | Letters",
                "headline":"Debate continues over Labour’s code on antisemitism"

This is a block of the JSON file. The fields I am interested in are “sectionName”, “webPublicationDate”, “webTitle”, “webUrl” and “headline”. Below is the code for parsing it:

try {
        JSONObject baseJsonResponse = new JSONObject(newsJSON);
        JSONArray newsArray = baseJsonResponse.getJSONArray("response");
        for(int i = 0; i < newsArray.length(); i++) {
            JSONObject currentNews = newsArray.getJSONObject(i);
            JSONObject details = currentNews.getJSONObject("results");

            String header = details.getString("webTitle");
            String section = details.getString("sectionName");
            long date = details.getLong("webPublicationDate");
            String url = details.getString("webUrl");

            JSONObject detailHeadline = currentNews.getJSONObject("fields");

            String headline = detailHeadline.getString("headline");

            pojo pojo = new pojo(headline, header, section, date, url);
    } catch (JSONException e){
        Log.e(LOG_TAG, "Problem parsing the news JSON results", e);
    return newsPojo;

I keep getting the error "Problem parsing the news JSON results" in the log.

All topic