Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 1836 → Rev 1837

/branches/v3/impl/src/java/pt/estgp/estgweb/services/courses/CourseReportServices.java
76,7 → 76,7
 
String json = loadCourseUnitDtpStats(courseCode,year);
JSONObject response = new JSONObject(json);
JSONArray stats = (JSONArray) ((JSONObject)response.get("response")).get("dtpstats");
JSONArray stats = (JSONArray) response.get("dtpstats");
CourseUnitDtpStat[] statsLoaded = CourseUnitDtpStat.fromJson(stats);
 
for(CourseUnit cu :units)
446,7 → 446,7
is.close();
//TODO temos de extrair o resultado do RESPONSE
JSONObject jsonObject = new JSONObject(json);
return jsonObject.getString("response").toString();
return jsonObject.get("response").toString();
}
}
 
490,7 → 490,7
String json = StreamsUtils.readString(is);
is.close();
JSONObject jsonObject = new JSONObject(json);
return jsonObject.getString("response").toString();
return jsonObject.get("response").toString();
}
}