Java 中能將 html 編碼正確轉換的套件: org.apache.commons.lang.StringEscapeUtils。
String source = "The less than sign (
String escaped = escapeHtml(source); //转义
System.out.println(escaped);
source = "{"zbjson":{"shouJianHao":"660eb728-a94c-7c6b-c47d-f617ec85528a"},"cb1json":[{"gongYouRen":"","gongYouLx":"1","gongYouQl":"1","gongYouFe":"","qiTaSm":"","shouJianHao":"660eb728-a94c-7c6b-c47d-f617ec85528a","poid":""}],"cb2json":[{"bianHao":"1","caiLiaoMc":"","leiBie":"1","fenShu":"","shouJianHao":"660eb728-a94c-7c6b-c47d-f617ec85528a"}]}";
escaped =org.apache.commons.lang.StringEscapeUtils.unescapeHtml(source); //反转义
System.out.println(escaped);