Fix invalid JSON exception when querying gacha records

This commit is contained in:
KingRainbow44
2023-06-02 14:01:54 -04:00
parent 82189e03ed
commit d9e8810a5c
2 changed files with 20 additions and 14 deletions

View File

@@ -525,4 +525,14 @@ public final class Utils {
} catch (InterruptedException ignored) {
}
}
/**
* Unescapes a JSON string.
*
* @param json The JSON string to unescape.
* @return The unescaped JSON string.
*/
public static String unescapeJson(String json) {
return json.replaceAll("\"", "\"");
}
}