Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save magicliang/c44a1313230516bb9601d032245779a1 to your computer and use it in GitHub Desktop.
Save magicliang/c44a1313230516bb9601d032245779a1 to your computer and use it in GitHub Desktop.
如何让字符串能够被反序列化
/**
* 解 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