mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-16 08:56:04 +01:00
Fix invalid JSON exception when querying gacha records
This commit is contained in:
@@ -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("\"", "\"");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user