我收到语法错误:illegal character on this line
,是否有人知道这可能是什么?
{pIconImg:"/blob/958/893/transparent_128x1,0.png", pIconImgAltTxt:"null", pName:"Gogo Unlimited Mobile", pCode:"ASMARC5555", pPriceDollar:"49", pPriceCents:"95", pBuyUrl:"/gbp/pickpass.do?execution=e6s1&_eventId=buy&productCode=ASMARC5555&quantity=1&requesterType=gbp&lang=en_US&curr=USD", pShortDescr:"Unlimited access on domestic Gogo equipped flights with <a href="#" id="parAir">participating airlines</a>.", pLongDescrUrl:"/gbp/pickpass.do?execution=e6s1&_eventId=more&productCode=ASMARC5555"}
答案 0 :(得分:1)
在密钥周围使用引号的好习惯。 如果您有兴趣知道原因,请查看此SO post
关于你遇到的问题,一旦我引用了密钥,就会传递json验证(jsonlint.com)
{
"pIconImg": "/blob/958/893/transparent_128x1,0.png",
"pIconImgAltTxt": "null",
"pName": "Gogo Unlimited Mobile",
"pCode": "ASMARC5555",
"pPriceDollar": "49",
"pPriceCents": "95",
"pBuyUrl": "/gbp/pickpass.do?execution=e6s1&_eventId=buy&productCode=ASMARC5555&quantity=1&requesterType=gbp&lang=en_US&curr=USD",
"pShortDescr": "Unlimited access on domestic Gogo equipped flights with <a href=\"#\" id=\"parAir\">participating airlines</a>.",
"pLongDescrUrl": "/gbp/pickpass.do?execution=e6s1&_eventId=more&productCode=ASMARC5555"
}