查找 JSON Mistake
找错误 简单
题目
这个 JSON 是无效. 查找 and fix mistake.
代码
{
name: "Ada Lovelace",
"age": 36,
"skills": ["math", "programming"]
}
提示
In JSON, 所有键 必须是 wrapped in 特定 character.
解释
The key "name" is not wrapped in double quotes. In JSON, ALL keys must be double-quoted strings. The corrected JSON is: { "name": "Ada Lovelace", "age": 36, "skills": ["math", "programming"] }. Single quotes are also not allowed.
相关资源
相关课程
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。