Complete the JSON Object
Fill in the BlankBeginner
Question
Fill in the blank to make this a valid JSON object with a 'name' key.
Code
{
___: "Ada Lovelace"
}
Hint
In JSON, keys must be wrapped in double quotes.
Explanation
Unlike JavaScript object literals, JSON requires keys to be wrapped in double quotes. The completed JSON is { "name": "Ada Lovelace" }. Single quotes or unquoted keys are invalid in JSON, even though they work in JavaScript.
Related Resources
Related Lessons
- JSON
Learn JSON syntax rules.
Related Tools
- JSON Formatter
Validate and format JSON.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.