【问题】
用Python代码:photoInfoJsonAddQuote = re.sub(r"(,?)(\w+?)\s*?:", r"\1'\2':", photoInfoJson);
logging.debug("photoInfoJsonAddQuote=%s", photoInfoJsonAddQuote);
photoInfoJsonDoubleQuote = photoInfoJsonAddQuote.replace("'", "\"");
logging.debug("photoInfoJsonDoubleQuote=%s", photoInfoJsonDoubleQuote);
#remove comma before end of list
afterRemoveLastCommaInList = re.sub(r",\s*?]", "]", photoInfoJsonDoubleQuote);
logging.debug("photoInfoJsonDoubleQuote=%s", afterRemoveLastCommaInList);
photoInfoDict = json.loads(afterRemoveLastCommaInList);
处理:
中的html中的:{id:’34393-87556247′,owner:’34393′,ownername:’314159subin’,title:’雪舞飞扬’,description:’1月3日新年伊始,一场大雪让杭城\x26quot;雪舞飞扬\x26quot;.’,bucket:’314159subin’,key:’CxsKKLUc’,license:0,stats_