最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】Bad JSON escape sequence: \x. Path ‘results[0].html’, line 8, position 12.

JSON crifan 9033浏览 0评论

【问题】

折腾:

【已解决】C#中解析Json字符串

的过程中,用Newtonsoft.Json,即Json.Net的代码:

using Newtonsoft.Json;

string filteredJsonText = jsonText.Replace("'", "\"");
JsonReader reader = new JsonTextReader(new StringReader(jsonText));

while (reader.Read())
{
	Console.WriteLine(reader.TokenType + "\t\t" + reader.ValueType + "\t\t" + reader.Value);
}

去解析json字符串:

{
"query": "weight loss",
"frequency": "3",
"has_recent_results": 1,
"results": [
{
"input": "NEWS",
"html": "\x0A\x3Ctable cellpadding=\x220\x22 cellspacing=\x220\x22 border=\x220\x22\x3E\x3Ctr\x3E\x3Ctd style=\x22background-color:#EBEFF9\x3B padding: 4px 8px 4px 8px\x22\x3E\x3Ctable cellpadding=\x220\x22 cellspacing=\x220\x22 border=\x220\x22 width=\x22100%\x22\x3E\x3Ctr\x3E\x3Ctd\x3E\x3Cfont size=\x22-1\x22\x3E\x3Cnobr\x3E\x3Cb\x3ENews\x3C\x2Fb\x3E\x3C\x2Fnobr\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3Ctd width=\x2270%\x22 align=\x22right\x22\x3E\x3Cfont size=\x22-1\x22\x3E\x3Cb\x3E10\x3C\x2Fb\x3E new results for \x3Cb\x3Eweight loss\x3C\x2Fb\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3C\x2Ftable\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3Ctr\x3E\x3Ctd\x3E\x26nbsp\x3B\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3Ctr\x3E\x3Ctd style=\x22padding: 0px 8px 16px 8px\x3B\x22\x3E\x3Ctable cellpadding=\x220\x22 cellspacing=\x220\x22 border=\x220\x22 width=\x22100%\x22\x3E\x3Ctr\x3E\x3Ctd valign=\x22top\x22\x3E\x3Ca style=\x22color: #1111CC\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.nytimes.com\x2F2013\x2F03\x2F17\x2Ffashion\x2Ftanya-zuckerbrot-sets-a-weight-loss-example.html%3Fpagewanted%3Dall\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoATAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNG2zi_3ozVyt36_w_BNihZ__6TWxA\x22 target=\x22_blank\x22\x3ELeading and Losing by Example\x3C\x2Fa\x3E\x3Cbr\x3E\x3Cfont size=\x22-1\x22\x3E\x3Ca style=\x22text-decoration:none\x3Bcolor:#777777\x3Bcursor:default\x22 href=\x22\x22\x3ENew York Times\x3C\x2Fa\x3E\x3Cbr\x3EMs. Schecter is among a coterie of high-powered New Yorkers who are happily giving their money to Ms. Zuckerbrot, a registered dietitian and author of “The F-Factor Diet: Discover the Secret to Permanent \x3Cb\x3EWeight Loss\x3C\x2Fb\x3E,” published in 2006, and the “The \x3Cb\x3E...\x3C\x2Fb\x3E\x3Cbr\x3E\x3Ca style=\x22color:#228822\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory%3Fncl%3Dhttp:\x2F\x2Fwww.nytimes.com\x2F2013\x2F03\x2F17\x2Ffashion\x2Ftanya-zuckerbrot-sets-a-weight-loss-example.html%253Fpagewanted%253Dall%26hl%3Den%26geo%3Dus\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoBjAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNGOIMJvnYy1KLk4ZplkSq2CjqUz_Q\x22 target=\x22_blank\x22 title=\x22http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory?ncl=http:\x2F\x2Fwww.nytimes.com\x2F2013\x2F03\x2F17\x2Ffashion\x2Ftanya-zuckerbrot-sets-a-weight-loss-example.html%3Fpagewanted%3Dall\x26amp\x3Bhl=en\x26amp\x3Bgeo=us\x22\x3ESee all stories on this topic \x26raquo\x3B\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3Ctd align=\x22center\x22 width=\x2280\x22 valign=\x22top\x22\x3E\x3Ca href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.nytimes.com\x2F2013\x2F03\x2F17\x2Ffashion\x2Ftanya-zuckerbrot-sets-a-weight-loss-example.html%3Fpagewanted%3Dall\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoAjAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNG2zi_3ozVyt36_w_BNihZ__6TWxA\x22 target=\x22_blank\x22\x3E\x3Cimg border=\x220\x22 src=\x22http:\x2F\x2Fnt0.ggpht.com\x2Fnews\x2Ftbn\x2FAOXBEWKCcAAJ\x22 alt=\x22\x22 width=\x2280\x22 height=\x2253\x22\x3E\x3C\x2Fa\x3E\x3Cfont size=\x22-2\x22\x3E\x3Cbr\x3E\x3Ca href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.nytimes.com\x2F2013\x2F03\x2F17\x2Ffashion\x2Ftanya-zuckerbrot-sets-a-weight-loss-example.html%3Fpagewanted%3Dall\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoAzAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNG2zi_3ozVyt36_w_BNihZ__6TWxA\x22 target=\x22_blank\x22\x3ENew York Times\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3C\x2Ftable\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3Ctr\x3E\x3Ctd style=\x22padding: 0px 8px 16px 8px\x3B\x22\x3E\x3Ctable cellpadding=\x220\x22 cellspacing=\x220\x22 border=\x220\x22 width=\x22100%\x22\x3E\x3Ctr\x3E\x3Ctd valign=\x22top\x22\x3E\x3Ca style=\x22color: #1111CC\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Ffox13now.com\x2F2013\x2F03\x2F15\x2Fbig-budahs-blog-family-gatherings-weight-loss-progress-and-disneyland\x2F\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoATAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNG-eJeTH11YMKVdgcfTfclT2ceL9Q\x22 target=\x22_blank\x22\x3EBig Budah\x26#39\x3Bs blog: Family gatherings, \x3Cb\x3Eweight loss\x3C\x2Fb\x3E progress and Disneyland\x3C\x2Fa\x3E\x3Cbr\x3E\x3Cfont size=\x22-1\x22\x3E\x3Ca style=\x22text-decoration:none\x3Bcolor:#777777\x3Bcursor:default\x22 href=\x22\x22\x3Efox13now.com\x3C\x2Fa\x3E\x3Cbr\x3E\x3Cb\x3E...\x3C\x2Fb\x3E then I\x26#39\x3Bm heading to Disneyland. I hope to be able to ride on more than a few rides there. It has been more than twenty years since I have fit in an amusement park ride, so this will be a real measuring stick for me as far as how my \x3Cb\x3Eweight loss\x3C\x2Fb\x3E is \x3Cb\x3E...\x3C\x2Fb\x3E\x3Cbr\x3E\x3Ca style=\x22color:#228822\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory%3Fncl%3Dhttp:\x2F\x2Ffox13now.com\x2F2013\x2F03\x2F15\x2Fbig-budahs-blog-family-gatherings-weight-loss-progress-and-disneyland\x2F%26hl%3Den%26geo%3Dus\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoBjAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNF-n0A8nNsmxTAZYjDoKm4twoR1fQ\x22 target=\x22_blank\x22 title=\x22http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory?ncl=http:\x2F\x2Ffox13now.com\x2F2013\x2F03\x2F15\x2Fbig-budahs-blog-family-gatherings-weight-loss-progress-and-disneyland\x2F\x26amp\x3Bhl=en\x26amp\x3Bgeo=us\x22\x3ESee all stories on this topic \x26raquo\x3B\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3Ctd align=\x22center\x22 width=\x2280\x22 valign=\x22top\x22\x3E\x3Ca href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Ffox13now.com\x2F2013\x2F03\x2F15\x2Fbig-budahs-blog-family-gatherings-weight-loss-progress-and-disneyland\x2F\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoAjAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNG-eJeTH11YMKVdgcfTfclT2ceL9Q\x22 target=\x22_blank\x22\x3E\x3Cimg border=\x220\x22 src=\x22http:\x2F\x2Fnt2.ggpht.com\x2Fnews\x2Ftbn\x2FQhs48McqOToJ\x22 alt=\x22\x22 width=\x2280\x22 height=\x2280\x22\x3E\x3C\x2Fa\x3E\x3Cfont size=\x22-2\x22\x3E\x3Cbr\x3E\x3Ca href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Ffox13now.com\x2F2013\x2F03\x2F15\x2Fbig-budahs-blog-family-gatherings-weight-loss-progress-and-disneyland\x2F\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoAzAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNG-eJeTH11YMKVdgcfTfclT2ceL9Q\x22 target=\x22_blank\x22\x3Efox13now.com\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3C\x2Ftable\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3Ctr\x3E\x3Ctd style=\x22padding: 0px 8px 16px 8px\x3B\x22\x3E\x3Ctable cellpadding=\x220\x22 cellspacing=\x220\x22 border=\x220\x22 width=\x22100%\x22\x3E\x3Ctr\x3E\x3Ctd valign=\x22top\x22\x3E\x3Ca style=\x22color: #1111CC\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fabclocal.go.com\x2Fwls\x2Fstory%3Fsection%3Dnews\x2Fentertainment%26id%3D9028719\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoATAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNESLQ7n5GyatT5Hee48WI0N9_nE_g\x22 target=\x22_blank\x22\x3EJillian Michaels book focuses on \x3Cb\x3Eweight loss\x3C\x2Fb\x3E, health\x3C\x2Fa\x3E\x3Cbr\x3E\x3Cfont size=\x22-1\x22\x3E\x3Ca style=\x22text-decoration:none\x3Bcolor:#777777\x3Bcursor:default\x22 href=\x22\x22\x3EABC7Chicago.com\x3C\x2Fa\x3E\x3Cbr\x3EMarch 15, 2013 (LOS ANGELES) -- Jillian Michaels book, \x26#39\x3B\x26#39\x3BSlim for Life: My Insider Secrets to Simple, Fast and Lasting \x3Cb\x3EWeight Loss\x3C\x2Fb\x3E,\x26#39\x3B\x26#39\x3B weighs in on the battle to lose weight and be healthy. Jillian Michaels orders two eggs over easy with a smidgeon of \x3Cb\x3E...\x3C\x2Fb\x3E\x3Cbr\x3E\x3Ca style=\x22color:#228822\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory%3Fncl%3Dhttp:\x2F\x2Fabclocal.go.com\x2Fwls\x2Fstory%253Fsection%253Dnews\x2Fentertainment%2526id%253D9028719%26hl%3Den%26geo%3Dus\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoBjAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNEWVDogC7tY_VmRX7qju5KTXfasPw\x22 target=\x22_blank\x22 title=\x22http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory?ncl=http:\x2F\x2Fabclocal.go.com\x2Fwls\x2Fstory%3Fsection%3Dnews\x2Fentertainment%26id%3D9028719\x26amp\x3Bhl=en\x26amp\x3Bgeo=us\x22\x3ESee all stories on this topic \x26raquo\x3B\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3Ctd align=\x22center\x22 width=\x2280\x22 valign=\x22top\x22\x3E\x3Ca href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fabclocal.go.com\x2Fwls\x2Fstory%3Fsection%3Dnews\x2Fentertainment%26id%3D9028719\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoAjAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNESLQ7n5GyatT5Hee48WI0N9_nE_g\x22 target=\x22_blank\x22\x3E\x3Cimg border=\x220\x22 src=\x22http:\x2F\x2Fnt2.ggpht.com\x2Fnews\x2Ftbn\x2F6oBxtKRkOqcJ\x22 alt=\x22\x22 width=\x2280\x22 height=\x2245\x22\x3E\x3C\x2Fa\x3E\x3Cfont size=\x22-2\x22\x3E\x3Cbr\x3E\x3Ca href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fabclocal.go.com\x2Fwls\x2Fstory%3Fsection%3Dnews\x2Fentertainment%26id%3D9028719\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoAzAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNESLQ7n5GyatT5Hee48WI0N9_nE_g\x22 target=\x22_blank\x22\x3EABC7Chicago.com\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3C\x2Ftable\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3Ctr\x3E\x3Ctd style=\x22padding: 0px 8px 16px 8px\x3B\x22\x3E\x3Ca style=\x22color: #1111CC\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.fiercepharma.com\x2Fstory\x2Fvivus-hopes-weight-loss-app-will-fatten-qsymia-sales\x2F2013-03-15\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoATAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNELrV1hG_3m3AvQB6pXiRWlfwLWKQ\x22 target=\x22_blank\x22\x3EVivus hopes \x3Cb\x3Eweight\x3C\x2Fb\x3E-\x3Cb\x3Eloss\x3C\x2Fb\x3E app will fatten up Qsymia sales\x3C\x2Fa\x3E\x3Cbr\x3E\x3Cfont size=\x22-1\x22\x3E\x3Ca style=\x22text-decoration:none\x3Bcolor:#777777\x3Bcursor:default\x22 href=\x22\x22\x3EFiercePharma\x3C\x2Fa\x3E\x3Cbr\x3EThe company ($VVUS), which has found the uptake slow on its highly vaunted drug, last week launched a mobile version of the \x3Cb\x3Eweight\x3C\x2Fb\x3E-\x3Cb\x3Eloss\x3C\x2Fb\x3E support tools already on its website, Medical Marketing \x26amp\x3B Media reports. The app, which works on Android and Apple \x3Cb\x3E...\x3C\x2Fb\x3E\x3Cbr\x3E\x3Ca style=\x22color:#228822\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory%3Fncl%3Dhttp:\x2F\x2Fwww.fiercepharma.com\x2Fstory\x2Fvivus-hopes-weight-loss-app-will-fatten-qsymia-sales\x2F2013-03-15%26hl%3Den%26geo%3Dus\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoBjAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNFQixHZPAVWl0S9J9C5bV9rFZVU6A\x22 target=\x22_blank\x22 title=\x22http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory?ncl=http:\x2F\x2Fwww.fiercepharma.com\x2Fstory\x2Fvivus-hopes-weight-loss-app-will-fatten-qsymia-sales\x2F2013-03-15\x26amp\x3Bhl=en\x26amp\x3Bgeo=us\x22\x3ESee all stories on this topic \x26raquo\x3B\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3Ctr\x3E\x3Ctd style=\x22padding: 0px 8px 16px 8px\x3B\x22\x3E\x3Ca style=\x22color: #1111CC\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww2.tbo.com\x2Flifestyles\x2Flife\x2F2013\x2Fmar\x2F16\x2F4unewso2-memories-of-food-may-aid-weight-loss-ar-658477\x2F\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoATAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNHAxSbHqwiRa6hfIYQFe6SYUWEKzQ\x22 target=\x22_blank\x22\x3EMemories of food may aid \x3Cb\x3Eweight loss\x3C\x2Fb\x3E\x3C\x2Fa\x3E\x3Cbr\x3E\x3Cfont size=\x22-1\x22\x3E\x3Ca style=\x22text-decoration:none\x3Bcolor:#777777\x3Bcursor:default\x22 href=\x22\x22\x3ETbo.com\x3C\x2Fa\x3E\x3Cbr\x3EAnd the appeal could be that incorporating \x26quot\x3Battentive-eating principles\x26quot\x3B into people\x26#39\x3Bs habits could help with \x3Cb\x3Eweight loss\x3C\x2Fb\x3E and maintenance \x26quot\x3Bwithout the need for conscious calorie counting.\x26quot\x3B The current studies differed from other strategies in use, such \x3Cb\x3E...\x3C\x2Fb\x3E\x3Cbr\x3E\x3Ca style=\x22color:#228822\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory%3Fncl%3Dhttp:\x2F\x2Fwww2.tbo.com\x2Flifestyles\x2Flife\x2F2013\x2Fmar\x2F16\x2F4unewso2-memories-of-food-may-aid-weight-loss-ar-658477\x2F%26hl%3Den%26geo%3Dus\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoBjAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNGak_PRGeg7VDOMQ7cnw4_7aox-wg\x22 target=\x22_blank\x22 title=\x22http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory?ncl=http:\x2F\x2Fwww2.tbo.com\x2Flifestyles\x2Flife\x2F2013\x2Fmar\x2F16\x2F4unewso2-memories-of-food-may-aid-weight-loss-ar-658477\x2F\x26amp\x3Bhl=en\x26amp\x3Bgeo=us\x22\x3ESee all stories on this topic \x26raquo\x3B\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3Ctr\x3E\x3Ctd style=\x22padding: 0px 8px 16px 8px\x3B\x22\x3E\x3Ca style=\x22color: #1111CC\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.bgdailynews.com\x2Ffeatures\x2Fwellness\x2Fsurgical-weight-loss-seminar-wednesday\x2Farticle_27ef6ffe-8e17-11e2-beb7-001a4bcf887a.html\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoATAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNGdf7eJLEXj3hgSwK4zIvee4XDcbQ\x22 target=\x22_blank\x22\x3ESurgical \x3Cb\x3Eweight loss\x3C\x2Fb\x3E seminar Wednesday\x3C\x2Fa\x3E\x3Cbr\x3E\x3Cfont size=\x22-1\x22\x3E\x3Ca style=\x22text-decoration:none\x3Bcolor:#777777\x3Bcursor:default\x22 href=\x22\x22\x3EBowling Green Daily News\x3C\x2Fa\x3E\x3Cbr\x3EA free surgical \x3Cb\x3Eweight loss\x3C\x2Fb\x3E information seminar will be at 5:30 p.m. Wednesday at The Medical Center at Franklin. Bariatric surgeon Dr. O. Raphael Nwanguma of Bluegrass Bariatric Surgical Associates and staff from The Medical Center Surgical \x3Cb\x3EWeight\x3C\x2Fb\x3E \x3Cb\x3E...\x3C\x2Fb\x3E\x3Cbr\x3E\x3Ca style=\x22color:#228822\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory%3Fncl%3Dhttp:\x2F\x2Fwww.bgdailynews.com\x2Ffeatures\x2Fwellness\x2Fsurgical-weight-loss-seminar-wednesday\x2Farticle_27ef6ffe-8e17-11e2-beb7-001a4bcf887a.html%26hl%3Den%26geo%3Dus\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoBjAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNGTPF50yQiYB5FBm6K0WHPX-yX1jQ\x22 target=\x22_blank\x22 title=\x22http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory?ncl=http:\x2F\x2Fwww.bgdailynews.com\x2Ffeatures\x2Fwellness\x2Fsurgical-weight-loss-seminar-wednesday\x2Farticle_27ef6ffe-8e17-11e2-beb7-001a4bcf887a.html\x26amp\x3Bhl=en\x26amp\x3Bgeo=us\x22\x3ESee all stories on this topic \x26raquo\x3B\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3Ctr\x3E\x3Ctd style=\x22padding: 0px 8px 16px 8px\x3B\x22\x3E\x3Ca style=\x22color: #1111CC\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Frye.patch.com\x2Farticles\x2Fnew-nyack-business-offers-new-weight-loss-approach-159269d5\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoATAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNGox2rJQwnwDwxGa-EzMFhzebLKQg\x22 target=\x22_blank\x22\x3ENew Nyack Business Offers New \x3Cb\x3EWeight Loss\x3C\x2Fb\x3E Approach\x3C\x2Fa\x3E\x3Cbr\x3E\x3Cfont size=\x22-1\x22\x3E\x3Ca style=\x22text-decoration:none\x3Bcolor:#777777\x3Bcursor:default\x22 href=\x22\x22\x3EPatch.com\x3C\x2Fa\x3E\x3Cbr\x3E“I always planned to open a private practice in Rockland and the timing was perfect professionally and personally. There currently is no other physician in Rockland that dedicates 100 percent of their practice to \x3Cb\x3Eweight management\x3C\x2Fb\x3E and preventive medicine.\x3Cbr\x3E\x3Ca style=\x22color:#228822\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory%3Fncl%3Dhttp:\x2F\x2Frye.patch.com\x2Farticles\x2Fnew-nyack-business-offers-new-weight-loss-approach-159269d5%26hl%3Den%26geo%3Dus\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoBjAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNG_ZuK95QwYKcAWFzV_28xhO8HG-Q\x22 target=\x22_blank\x22 title=\x22http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory?ncl=http:\x2F\x2Frye.patch.com\x2Farticles\x2Fnew-nyack-business-offers-new-weight-loss-approach-159269d5\x26amp\x3Bhl=en\x26amp\x3Bgeo=us\x22\x3ESee all stories on this topic \x26raquo\x3B\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3Ctr\x3E\x3Ctd style=\x22padding: 0px 8px 16px 8px\x3B\x22\x3E\x3Ca style=\x22color: #1111CC\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.necn.com\x2F03\x2F15\x2F13\x2FDoing-it-Right-Weight-loss-journey\x2Flanding.html%3FblockID%3D834793%26feedID%3D8498\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoATAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNHoLzA0B5itz-_TSLL7hT_tLT-Pgg\x22 target=\x22_blank\x22\x3EDoing it Right: \x3Cb\x3EWeight loss\x3C\x2Fb\x3E journey\x3C\x2Fa\x3E\x3Cbr\x3E\x3Cfont size=\x22-1\x22\x3E\x3Ca style=\x22text-decoration:none\x3Bcolor:#777777\x3Bcursor:default\x22 href=\x22\x22\x3ENECN\x3C\x2Fa\x3E\x3Cbr\x3E(NECN) - For most of us, losing \x3Cb\x3Eweight\x3C\x2Fb\x3E doesn\x26#39\x3Bt happen overnight. But in the April issue of \x26quot\x3BIn Shape\x26quot\x3B magazine, Beyonce tells them that she was able to \x3Cb\x3Elose\x3C\x2Fb\x3E the 57 pounds she gained during pregnancy just three months after the birth of her daughter.\x3Cbr\x3E\x3Ca style=\x22color:#228822\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory%3Fncl%3Dhttp:\x2F\x2Fwww.necn.com\x2F03\x2F15\x2F13\x2FDoing-it-Right-Weight-loss-journey\x2Flanding.html%253FblockID%253D834793%2526feedID%253D8498%26hl%3Den%26geo%3Dus\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoBjAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNHu4XX-9-kpzBQev9xIF6MpJ3jAOQ\x22 target=\x22_blank\x22 title=\x22http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory?ncl=http:\x2F\x2Fwww.necn.com\x2F03\x2F15\x2F13\x2FDoing-it-Right-Weight-loss-journey\x2Flanding.html%3FblockID%3D834793%26feedID%3D8498\x26amp\x3Bhl=en\x26amp\x3Bgeo=us\x22\x3ESee all stories on this topic \x26raquo\x3B\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3Ctr\x3E\x3Ctd style=\x22padding: 0px 8px 16px 8px\x3B\x22\x3E\x3Ctable cellpadding=\x220\x22 cellspacing=\x220\x22 border=\x220\x22 width=\x22100%\x22\x3E\x3Ctr\x3E\x3Ctd valign=\x22top\x22\x3E\x3Ca style=\x22color: #1111CC\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.foodnavigator-usa.com\x2FBusiness\x2FAmway-bases-new-weight-management-plans-on-in-home-genetic-test\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoATAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNF2HTj4MZwKitzq6yxwPMChacGMEg\x22 target=\x22_blank\x22\x3EAmway bases new \x3Cb\x3Eweight management\x3C\x2Fb\x3E plans on in-home genetic test\x3C\x2Fa\x3E\x3Cbr\x3E\x3Cfont size=\x22-1\x22\x3E\x3Ca style=\x22text-decoration:none\x3Bcolor:#777777\x3Bcursor:default\x22 href=\x22\x22\x3EFoodNavigator-USA.com\x3C\x2Fa\x3E\x3Cbr\x3ENetwork selling giant Amway has launched an integrated \x3Cb\x3Eweight management\x3C\x2Fb\x3E program based on genetic testing. The program uses a simple test kit to help consumers determine which of several \x3Cb\x3Eweight loss\x3C\x2Fb\x3E regimens will work best for them.\x3Cbr\x3E\x3Ca style=\x22color:#228822\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory%3Fncl%3Dhttp:\x2F\x2Fwww.foodnavigator-usa.com\x2FBusiness\x2FAmway-bases-new-weight-management-plans-on-in-home-genetic-test%26hl%3Den%26geo%3Dus\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoBjAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNFZ096Uc447u4yZUkGB6IsVY4uX_w\x22 target=\x22_blank\x22 title=\x22http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory?ncl=http:\x2F\x2Fwww.foodnavigator-usa.com\x2FBusiness\x2FAmway-bases-new-weight-management-plans-on-in-home-genetic-test\x26amp\x3Bhl=en\x26amp\x3Bgeo=us\x22\x3ESee all stories on this topic \x26raquo\x3B\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3Ctd align=\x22center\x22 width=\x2280\x22 valign=\x22top\x22\x3E\x3Ca href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.foodnavigator-usa.com\x2FBusiness\x2FAmway-bases-new-weight-management-plans-on-in-home-genetic-test\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoAjAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNF2HTj4MZwKitzq6yxwPMChacGMEg\x22 target=\x22_blank\x22\x3E\x3Cimg border=\x220\x22 src=\x22http:\x2F\x2Fnt1.ggpht.com\x2Fnews\x2Ftbn\x2FwZOxmvftUNAJ\x22 alt=\x22\x22 width=\x2280\x22 height=\x2253\x22\x3E\x3C\x2Fa\x3E\x3Cfont size=\x22-2\x22\x3E\x3Cbr\x3E\x3Ca href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.foodnavigator-usa.com\x2FBusiness\x2FAmway-bases-new-weight-management-plans-on-in-home-genetic-test\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoAzAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNF2HTj4MZwKitzq6yxwPMChacGMEg\x22 target=\x22_blank\x22\x3EFoodNavigator-USA.com\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3C\x2Ftable\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3Ctr\x3E\x3Ctd style=\x22padding: 0px 8px 16px 8px\x3B\x22\x3E\x3Ctable cellpadding=\x220\x22 cellspacing=\x220\x22 border=\x220\x22 width=\x22100%\x22\x3E\x3Ctr\x3E\x3Ctd valign=\x22top\x22\x3E\x3Ca style=\x22color: #1111CC\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.emaxhealth.com\x2F1020\x2Fstruggling-weight-loss-three-surprising-findings-about-how-olive-oil-can-help\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoATAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNH1dtpOlkd7VSkcXwgschSrreBBlg\x22 target=\x22_blank\x22\x3EStruggling with \x3Cb\x3Eweight loss\x3C\x2Fb\x3E? 3 surprising findings about how olive oil can help\x3C\x2Fa\x3E\x3Cbr\x3E\x3Cfont size=\x22-1\x22\x3E\x3Ca style=\x22text-decoration:none\x3Bcolor:#777777\x3Bcursor:default\x22 href=\x22\x22\x3EeMaxHealth\x3C\x2Fa\x3E\x3Cbr\x3EResults of a study show olive oil could help with \x3Cb\x3Eweight loss\x3C\x2Fb\x3E and curb hunger. According to the findings, natural oils have the ability to help us feel full after eating. Consuming fewer calories is recommended for losing weight and avoiding weight \x3Cb\x3E...\x3C\x2Fb\x3E\x3Cbr\x3E\x3Ca style=\x22color:#228822\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory%3Fncl%3Dhttp:\x2F\x2Fwww.emaxhealth.com\x2F1020\x2Fstruggling-weight-loss-three-surprising-findings-about-how-olive-oil-can-help%26hl%3Den%26geo%3Dus\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoBjAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNFrn4uP7WG8ox0sA-nTARtwIWNYLg\x22 target=\x22_blank\x22 title=\x22http:\x2F\x2Fnews.google.com\x2Fnews\x2Fstory?ncl=http:\x2F\x2Fwww.emaxhealth.com\x2F1020\x2Fstruggling-weight-loss-three-surprising-findings-about-how-olive-oil-can-help\x26amp\x3Bhl=en\x26amp\x3Bgeo=us\x22\x3ESee all stories on this topic \x26raquo\x3B\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3Ctd align=\x22center\x22 width=\x2280\x22 valign=\x22top\x22\x3E\x3Ca href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.emaxhealth.com\x2F1020\x2Fstruggling-weight-loss-three-surprising-findings-about-how-olive-oil-can-help\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoAjAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNH1dtpOlkd7VSkcXwgschSrreBBlg\x22 target=\x22_blank\x22\x3E\x3Cimg border=\x220\x22 src=\x22http:\x2F\x2Fnt3.ggpht.com\x2Fnews\x2Ftbn\x2Fk5qXUIMbrd0J\x22 alt=\x22\x22 width=\x2280\x22 height=\x2264\x22\x3E\x3C\x2Fa\x3E\x3Cfont size=\x22-2\x22\x3E\x3Cbr\x3E\x3Ca href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.emaxhealth.com\x2F1020\x2Fstruggling-weight-loss-three-surprising-findings-about-how-olive-oil-can-help\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAAoAzAAOABAipCRigVIA1AAWABiBWVuLVVT\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNH1dtpOlkd7VSkcXwgschSrreBBlg\x22 target=\x22_blank\x22\x3EeMaxHealth\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3C\x2Ftable\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3C\x2Ftable\x3E\x3Cbr\x3E\x0A"
}
,
{
"input": "WEB",
"html": "\x0A\x3Ctable cellpadding=\x220\x22 cellspacing=\x220\x22 border=\x220\x22\x3E\x3Ctr\x3E\x3Ctd style=\x22background-color:#EBEFF9\x3B padding: 4px 8px 4px 8px\x22\x3E\x3Ctable cellpadding=\x220\x22 cellspacing=\x220\x22 border=\x220\x22 width=\x22100%\x22\x3E\x3Ctr\x3E\x3Ctd\x3E\x3Cfont size=\x22-1\x22\x3E\x3Cnobr\x3E\x3Cb\x3EWeb\x3C\x2Fb\x3E\x3C\x2Fnobr\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3Ctd width=\x2270%\x22 align=\x22right\x22\x3E\x3Cfont size=\x22-1\x22\x3E\x3Cb\x3E5\x3C\x2Fb\x3E new results for \x3Cb\x3Eweight loss\x3C\x2Fb\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3C\x2Ftable\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3Ctr\x3E\x3Ctd\x3E\x26nbsp\x3B\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3Ctr\x3E\x3Ctd style=\x22padding: 0px 8px 16px 8px\x3B\x22\x3E\x3Ca style=\x22color: #1111CC\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.sciencedaily.com\x2Freleases\x2F2013\x2F03\x2F130313012632.htm\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAEoATAAOABAipCRigVIA1gAYgVlbi1VUw\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNH31zc3oJ_THLk4X_5bzneIvyKPtQ\x22 target=\x22_blank\x22\x3EStructured \x3Cb\x3Eweight loss\x3C\x2Fb\x3E program helps kids from low-income families \x3Cb\x3E...\x3C\x2Fb\x3E\x3C\x2Fa\x3E\x3Cbr\x3E\x3Cfont size=\x22-1\x22\x3EOverweight and obese children in low-income households can meet or exceed the Expert Committee Recommendations Regarding the Prevention, Assessment \x3Cb\x3E...\x3C\x2Fb\x3E\x3Cbr\x3E\x3Ca style=\x22color:#228822\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.sciencedaily.com\x2Freleases\x2F2013\x2F03\x2F130313012632.htm\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAEoBDAAOABAipCRigVIA1gAYgVlbi1VUw\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNH31zc3oJ_THLk4X_5bzneIvyKPtQ\x22 target=\x22_blank\x22 title=\x22http:\x2F\x2Fwww.sciencedaily.com\x2Freleases\x2F2013\x2F03\x2F130313012632.htm\x22\x3Ewww.sciencedaily.com\x2Freleases\x2F2013\x2F03\x2F130313012632.htm\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3Ctr\x3E\x3Ctd style=\x22padding: 0px 8px 16px 8px\x3B\x22\x3E\x3Ca style=\x22color: #1111CC\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.glamour.com\x2Fhealth-fitness\x2F2013\x2F03\x2Fweight-loss-tips-health-experts-wish-they-heard-years-ago\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAEoATAAOABAipCRigVIA1gAYgVlbi1VUw\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNEYn0pryDsA4NGqzPv6ZYzSIKBR3A\x22 target=\x22_blank\x22\x3E\x26quot\x3BDear Less-Healthy Me:\x26quot\x3B The \x3Cb\x3EWeight\x3C\x2Fb\x3E-\x3Cb\x3ELoss\x3C\x2Fb\x3E Tips Health Experts Wish \x3Cb\x3E...\x3C\x2Fb\x3E\x3C\x2Fa\x3E\x3Cbr\x3E\x3Cfont size=\x22-1\x22\x3ETrainers and chefs (many of whom have dropped pounds themselves!) share their best advice forhealthy eating and \x3Cb\x3Eweight loss\x3C\x2Fb\x3E so you don\x26#39\x3Bt make the same \x3Cb\x3E...\x3C\x2Fb\x3E\x3Cbr\x3E\x3Ca style=\x22color:#228822\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.glamour.com\x2Fhealth-fitness\x2F2013\x2F03\x2Fweight-loss-tips-health-experts-wish-they-heard-years-ago\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAEoBDAAOABAipCRigVIA1gAYgVlbi1VUw\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNEYn0pryDsA4NGqzPv6ZYzSIKBR3A\x22 target=\x22_blank\x22 title=\x22http:\x2F\x2Fwww.glamour.com\x2Fhealth-fitness\x2F2013\x2F03\x2Fweight-loss-tips-health-experts-wish-they-heard-years-ago\x22\x3Ewww.glamour.com\x2F...\x2Fweight-loss-tips-health-experts-wish-the...\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3Ctr\x3E\x3Ctd style=\x22padding: 0px 8px 16px 8px\x3B\x22\x3E\x3Ca style=\x22color: #1111CC\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.boston.com\x2Flifestyle\x2Fhealth\x2Fblog\x2Fnutrition\x2F2013\x2F03\x2F6_tips_to_avoid_dangerous_weig.html\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAEoATAAOABAipCRigVIA1gAYgVlbi1VUw\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNFIK8miR8GakWKwt5AW7QY72UogZg\x22 target=\x22_blank\x22\x3E6 Tips to Avoid Dangerous \x3Cb\x3EWeight Loss\x3C\x2Fb\x3E and Health Fraud Scams \x3Cb\x3E...\x3C\x2Fb\x3E\x3C\x2Fa\x3E\x3Cbr\x3E\x3Cfont size=\x22-1\x22\x3EPhoto Source: FDAWith daylight savings starting this week, many of us are thinking about losing our winter \x3Cb\x3Eweight\x3C\x2Fb\x3E. Unfortunately, springtime is prime time for the \x3Cb\x3E...\x3C\x2Fb\x3E\x3Cbr\x3E\x3Ca style=\x22color:#228822\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.boston.com\x2Flifestyle\x2Fhealth\x2Fblog\x2Fnutrition\x2F2013\x2F03\x2F6_tips_to_avoid_dangerous_weig.html\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAEoBDAAOABAipCRigVIA1gAYgVlbi1VUw\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNFIK8miR8GakWKwt5AW7QY72UogZg\x22 target=\x22_blank\x22 title=\x22http:\x2F\x2Fwww.boston.com\x2Flifestyle\x2Fhealth\x2Fblog\x2Fnutrition\x2F2013\x2F03\x2F6_tips_to_avoid_dangerous_weig.html\x22\x3Ewww.boston.com\x2F...\x2F6_tips_to_avoid_dangerous_weig.html\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3Ctr\x3E\x3Ctd style=\x22padding: 0px 8px 16px 8px\x3B\x22\x3E\x3Ca style=\x22color: #1111CC\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fradio.foxnews.com\x2F2013\x2F03\x2F13\x2Fhousecall-for-health-sleep-more-weigh-less\x2F\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAEoATAAOABAipCRigVIA1gAYgVlbi1VUw\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNHrjQttVrDjKOZ_s1xk9YdO4ZuQPg\x22 target=\x22_blank\x22\x3EHousecall for Health: Sleep \x26amp\x3B \x3Cb\x3EWeight Loss\x3C\x2Fb\x3E ? FOX News Radio\x3C\x2Fa\x3E\x3Cbr\x3E\x3Cfont size=\x22-1\x22\x3ELosing \x3Cb\x3Eweight\x3C\x2Fb\x3E is not just about diet and exercise, according to new research the amount of sleep you get is a key factor too. FOX\x26#39\x3Bs Colleen Cappon reports in \x3Cb\x3E...\x3C\x2Fb\x3E\x3Cbr\x3E\x3Ca style=\x22color:#228822\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fradio.foxnews.com\x2F2013\x2F03\x2F13\x2Fhousecall-for-health-sleep-more-weigh-less\x2F\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAEoBDAAOABAipCRigVIA1gAYgVlbi1VUw\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNHrjQttVrDjKOZ_s1xk9YdO4ZuQPg\x22 target=\x22_blank\x22 title=\x22http:\x2F\x2Fradio.foxnews.com\x2F2013\x2F03\x2F13\x2Fhousecall-for-health-sleep-more-weigh-less\x2F\x22\x3Eradio.foxnews.com\x2F...\x2Fhousecall-for-health-sleep-more-weigh-l...\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3Ctr\x3E\x3Ctd style=\x22padding: 0px 8px 16px 8px\x3B\x22\x3E\x3Ca style=\x22color: #1111CC\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.nytimes.com\x2F2013\x2F03\x2F17\x2Ffashion\x2Ftanya-zuckerbrot-sets-a-weight-loss-example.html%3Fpagewanted%3Dall\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAEoATAAOABAipCRigVIA1gAYgVlbi1VUw\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNG2zi_3ozVyt36_w_BNihZ__6TWxA\x22 target=\x22_blank\x22\x3ELeading and Losing by Example\x3C\x2Fa\x3E\x3Cbr\x3E\x3Cfont size=\x22-1\x22\x3EJust who is Tanya Zuckerbrot, and why are so many people willing to pay her so much to give them a nutritional makeover?\x3Cbr\x3E\x3Ca style=\x22color:#228822\x22 href=\x22http:\x2F\x2Fwww.google.com\x2Furl?sa=X\x26amp\x3Bq=http:\x2F\x2Fwww.nytimes.com\x2F2013\x2F03\x2F17\x2Ffashion\x2Ftanya-zuckerbrot-sets-a-weight-loss-example.html%3Fpagewanted%3Dall\x26amp\x3Bct=ga\x26amp\x3Bcad=CAcQAxgAIAEoBDAAOABAipCRigVIA1gAYgVlbi1VUw\x26amp\x3Bcd=1flk2fr1UqU\x26amp\x3Busg=AFQjCNG2zi_3ozVyt36_w_BNihZ__6TWxA\x22 target=\x22_blank\x22 title=\x22http:\x2F\x2Fwww.nytimes.com\x2F2013\x2F03\x2F17\x2Ffashion\x2Ftanya-zuckerbrot-sets-a-weight-loss-example.html?pagewanted=all\x22\x3Ewww.nytimes.com\x2F...\x2Ftanya-zuckerbrot-sets-a-weight-loss-exa...\x3C\x2Fa\x3E\x3C\x2Ffont\x3E\x3C\x2Ftd\x3E\x3C\x2Ftr\x3E\x3C\x2Ftable\x3E\x3Cbr\x3E\x0A"
}
]
} 

出错:

Bad JSON escape sequence: \x. Path ‘results[0].html’, line 8, position 12.

 

Bad JSON escape sequence x Path

【解决过程】

1.很明显,是html的值中,包含了\xXXX的值,而此处无法正常识别,才出错的。

2.找到:

Patch: support for \xNN and octal escaped strings

说是添加了patch支持此项。

所以去确认一下,当前所用的库,是不是加了patch之后的。

然后看到其解释说,已经把此patch加到4.0的版本了。

而我此处的已经是4.5的了,所以是已经加了patch后的。

并且,也去看了看

Json.Net\Json45r11\Source\Src\Newtonsoft.Json\JsonTextReader.cs

中,也已经有了类似的代码:

              default:
                charPos++;
                _charPos = charPos;
                throw JsonReaderException.Create(this, "Bad JSON escape sequence: {0}.".FormatWith(CultureInfo.InvariantCulture, @"\" + currentChar));
            }

所以,应该是加了patch后的。

3.再去参考了:

JSON help needed from devs

才知道,原来,当前的4.5的release的Json.Net中,是没有加了上述的patch的。

所以,自己去把patch添加进去。

所以去打开Newtonsoft.Json.Net20.sln,

然后找到ReadStringIntoBuffer(),打算添加进入:

case 'x':
hexValues = new char[2];
for (int i = 0; i < hexValues.Length; i++)
{
  if ((currentChar = MoveNext()) != '' || !_end)
	  hexValues[i] = currentChar;
  else
	  throw CreateJsonReaderException("Unexpected end while parsing unicode character. Line {0}, position {1}.", _currentLineNumber, _currentLinePosition);
}

hexChar = Convert.ToChar(int.Parse(new string(hexValues), NumberStyles.HexNumber, NumberFormatInfo.InvariantInfo));
_buffer.Append(hexChar);
break;

结果是,缺少很多变量和函数,需要花点时间改改,或许才能用的。。。。

4.后来花了很多时间,改为:

              case 'x':
                char[] hexValues = new char[2];
                for (int i = 0; i < hexValues.Length; i++)
                {
                    if ((currentChar = _chars[_charPos++]) != '')
                        hexValues[i] = currentChar;
                    else
                        throw JsonReaderException.Create(this, "Unexpected end while parsing unicode character. Line {0}, position {1}.");
                }

                char hexChar = Convert.ToChar(int.Parse(new string(hexValues), NumberStyles.HexNumber, NumberFormatInfo.InvariantInfo));
                _buffer.Append(hexChar);

                writeChar = hexChar;

                charPos = _charPos;
                break;

然后重新编译出来一个Newtonsoft.Json.dll,拿来试试,看看是否可用。

结果出错了,

因为误把:

\x0A

中的x和0,拿去解析了。

所以经过调试,最终改为:

              case 'x':
                _charPos++;

                char[] hexValues = new char[2];
                for (int i = 0; i < hexValues.Length; i++)
                {
                    if ((currentChar = _chars[_charPos++]) != '')
                        hexValues[i] = currentChar;
                    else
                        throw JsonReaderException.Create(this, "Unexpected end while parsing unicode character. Line {0}, position {1}.");
                }

                char hexChar = Convert.ToChar(int.Parse(new string(hexValues), NumberStyles.HexNumber, NumberFormatInfo.InvariantInfo));
                writeChar = hexChar;

                charPos = _charPos;
                break;

然后,终于可以解析,并获得对应的,上述的json字符串了。

 

【总结】

Json.Net的库,原本对于json中,包含了\xXX的值,是不支持的 -> 会报

Bad JSON escape sequence: \x

的错误。

而之前别人已经提交了patch以支持此功能,当时是针对4.0的版本,

结果某人说是已经加进去了,实际上没有。

导致此处,需要我自己花额外的很多时间,去整合此(需要改动不少的)代码,到当前4.5的版本中,最终终于,至少目前可以工作,支持了\xXX的内容。

 

另外:

话说,此json库,也还是有点小变态,

因为,对于json中的内容:

"html": "xxx"

你作为json解析器,只需要解析json的格式,将其转换为相应对象即可。

而作为json对象中的某个key的值,此处即html的值,你根本就不需要你关心;

你也不应该关心,而应该留给后续的处理者,关心其中的内容,才是正确的逻辑。

 

总之:

C#中处理json,比Python中,弱一万倍,难用一万倍。而且还是在已有了有所谓的好用的C#的json库的前提下。。。

转载请注明:在路上 » 【已解决】Bad JSON escape sequence: \x. Path ‘results[0].html’, line 8, position 12.

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.201 seconds, using 22.21MB memory