Sometimes when parsing json, you will encounter double quotes with English inside, resulting in parsing errors. You can escape json, as follows:
public static String htmlEscape(String input) {if(isEmpty(input)){ return input;}input = input.replaceAll("&", "&");input = input.replaceAll("<", "<");input = input.replaceAll(">", ">");input = input.replaceAll("", "");input = input.replaceAll("", "");input = input.replaceAll("'", "'"); //IE does not support single quote entity names for the time being, but single quote entity numbers for the time being, so single quotes are escaped into entity numbers, and other characters are escaped into entity names input = input.replaceAll("/"", ""); //Double quotes also need to be escaped, so add a slash to escape it input = input.replaceAll("/n", "<br/>"); //The filtering of /n cannot be placed in front, because the filtering of < and > must also be filtered, which will cause the failure of <br/> return input;}The solution to the above json analysis to report errors in English double quotes is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.