Manually unescape HTML Quote entities to be escaped quotes in the JSON to prevent MalformedJSONExceptions in the GsonApiClient
This commit is contained in:
@@ -16,7 +16,7 @@ public class GsonApiClient {
|
||||
}
|
||||
|
||||
public static JsonElement invokeJson(String url) throws IOException, ApiException {
|
||||
String apiResult = StringEscapeUtils.unescapeHtml4(SimpleApiClient.invokeUrl(url));
|
||||
String apiResult = StringEscapeUtils.unescapeHtml4(SimpleApiClient.invokeUrl(url).replace(""", "\\\""));
|
||||
return wrapWithJson(apiResult);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user