You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.err.print("IOException occured while converting the HTTP response to string in Class: " + this.getClass().getName() + ": " + e.getMessage());
57
+
}
58
+
59
+
returnresponseAsText;
60
+
}
61
+
62
+
publicJSONObjectjson_dict() {
63
+
64
+
JSONObjectjObject = newJSONObject();
65
+
try {
66
+
if (isContentType("application/json"))
67
+
jObject = newJSONObject(text());
68
+
else {
69
+
thrownewIOException();
70
+
}
71
+
} catch (JSONExceptione) {
72
+
System.err.print("JSONException occured while converting the HTTP response to JSON Dictonary in Class: " + this.getClass().getName() + ": " + e.getMessage());
73
+
} catch (IOExceptione) {
74
+
System.err.print("IOException occured while converting the HTTP response to JSON Dictonary in Class: " + this.getClass().getName() + ": " + e.getMessage());
75
+
}
76
+
returnjObject;
77
+
}
78
+
79
+
80
+
publicJSONObjectjson() {
81
+
JSONObjectobject = newJSONObject();
82
+
try {
83
+
object = newJSONObject(response.body().string());
84
+
thrownewIOException();
85
+
} catch (JSONExceptione) {
86
+
System.err.print("JSONException occured while converting the HTTP response to JSON in Class: " + this.getClass().getName() + ": " + e.getMessage());
87
+
} catch (IOExceptione) {
88
+
System.err.print("IOException occured while converting the HTTP response to JSON in Class: " + this.getClass().getName() + ": " + e.getMessage());
0 commit comments