Created
August 31, 2021 15:40
-
-
Save magicliang/c44a1313230516bb9601d032245779a1 to your computer and use it in GitHub Desktop.
如何让字符串能够被反序列化
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 解 json 双引号引用 | |
* @param originString 原始字符串 | |
* @return 真 json 字符串 | |
*/ | |
private static String deEscapeJsonQuote(String originString) { | |
final String tempStr = originString.replaceAll("\"\"", "\""); | |
return tempStr.substring(1, tempStr.length() - 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment