我的 javascript 代码中的 JSON 对象数组有问题,这是代码
[{"id":"ID", "lat":"LAT", "lon":"LON", "zip":"ZIP", "text":"TEXT"}]
问题出现在“text”对象中,当字符串包含“in”工作时,它说“Uncaught SyntaxError:Unexpected token ILLEGAL”这是完整的代码:
[{"id":"1", "lat":"43.19716728250127", "lon":"-119.53125", "zip":"40219", "text":"Testing, Hello World"},{"id":"2", "lat":"46.92025531537451", "lon":"-119.443359375", "zip":"40222", "text":"hello world"},{"id":"3", "lat":"39.16414104768742", "lon":"-82.529296875", "zip":"", "text":"Choice Roof Contractor
<br>Based in Mansfield, OH"}]