CodeValid nested JSON
{
"name": "DevKitYard",
"tags": ["tools", "components"],
"public": true
}Use this JSON cheatsheet when you need a quick reminder of valid syntax, data types, escaping and common parser errors.
"hello"42truenull{"name":"DevKitYard"}["html", "css", "json"]{"user":{"id":1}}[{"id":1},{"id":2}]Keys must use double quotesStrings must use double quotes{"ok": true}"He said \"hi\""\"\\\n6.02e23Comments are not valid JSON{"ok": true}Use null or omit the propertyMay lose precision in JavaScriptUse a string when exact digits must survive.
{
"name": "DevKitYard",
"tags": ["tools", "components"],
"public": true
}try {
const value: unknown = JSON.parse(input);
// Validate the shape before use.
} catch (error) {
console.error("Invalid JSON", error);
}JSON Cheatsheet includes quick reference sections, practical examples, common mistakes, tips and links to related DevKitYard tools.
This cheatsheet is a static quick reference focused on concise commands, syntax and examples.
Use it when you need to recall syntax, compare common patterns or avoid mistakes without opening a long tutorial.
Use related DevKitYard tools such as JSON Formatter & Validator, JSON Viewer, JSON Diff Checker when you need to format, validate, generate or inspect real output.