javascript - 为什么此 json 在 IE 控制台和 Visual Studio 屏幕解析器中抛出错误?

标签 javascript json visual-studio-2010

我一直在寻找,我似乎不明白为什么......

{
    "Head": 
    [{
        "ID": "1",
        "Name": "Pete"
    }]
};

在 IE 控制台和 visual studio 屏幕解析器中抛出错误?

最佳答案

JSON 中没有分号。您描述的是数据,而不是陈述。

{
    "Head": 
    [{
        "ID": "1",
        "Name": "Pete"
    }]
}

关于javascript - 为什么此 json 在 IE 控制台和 Visual Studio 屏幕解析器中抛出错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10720273/

相关文章:

c++ - 从 C++ : fail to initialize the library 调用 matlab dll

C++: Unresolved external 问题让我抓狂

javascript - 将 xml 中的数据获取到传单 map 中

javascript - 限制保存在我的数据库中的特定域的 PHP API

javascript - 如何摆脱本地 JSON 操作

python - 如何使用 python wsgi 应用程序读取 Json 对象

c# - 用 c# .NET 4 vs2010 编写的 Windows 服务不会安装在 Server 2008 R2 Enterprise 上

javascript - 检测 Javascript 事件类型

javascript - Stripe.JS - 使用附加数据创建源(所有者)

javascript - 无法访问对象的 JSON 数组,让我抓狂