我正在通过添加自定义模块来扩展aurelia的入门应用程序.我在阅读json时遇到错误"Uncaught SyntaxError:Unexpected token:".但是json验证器没有发现任何错误.
这是我的json
{
"news": [
{
"title": "Lorem Ipsum is simply dummy text",
"type": "news",
"tags": [
"news",
"fish",
"loremipsumdolor"
],
"text": "Lorem Ipsum is simply dummy text of the printing and typesetting industry."
},
{
"title": "Lorem Ipsum",
"type": "news",
"tags": [
"news",
"fish"
],
"text": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s."
}
]
}
这是我的模块试图加载json(基本上它是来自flickr.js的复制粘贴,可以在示例代码中找到)`import …