Manually unescape HTML Quote entities to be escaped quotes in the JSON to prevent MalformedJSONExceptions in the GsonApiClient

This commit is contained in:
CrushedPixel
2015-08-16 18:29:28 +02:00
parent 66a9282875
commit c95c2f0e4c

View File

@@ -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);
}